-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I have setup two users: test1 and test2 in the Glasshfish file realm and mapped accordingly in the web.xml and sun-web.xml.
test1 has role of admin and test2 has a role of regular user.
How can I reference the role in ZK page based on the login?
<zk> <window id="something" apply="myVeryControllerComposer" > <grid mode=@{shameonyou} > <columns sizable="true"> <column/> </columns> <rows> <row self="@{each='data'}"> <cell><label id="invID" value="@{data.getInvoiceID}" /> </cell> <cell> <button id="editInvoiceButton" label="Edit" forward="onClick=onClickInvoiceEditButton()" > <--- would like to hide/disable this button when "test2" is login <custom-attributes invoiceSeqID="@{data.getInvoiceID}"/> <custom-attributes invoiceWaID="@{data.getEmp}"/> </button> </cell> </row> </rows> </grid> </window> </zk>
Asked: 2011-05-13 17:10:47 +0800
Seen: 366 times
Last updated: May 13 '11