0

Authenication using Glassfish File Realm

asked 2011-05-13 17:10:47 +0800

bztom33 gravatar image bztom33
104 3

updated 2011-05-13 17:12:31 +0800

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>

delete flag offensive retag edit
Be the first one to reply this discussion!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-05-13 17:10:47 +0800

Seen: 366 times

Last updated: May 13 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More