[jboss-user] [JBoss Seam] - Re: Nested EL in .xhtml and s:hasRole hard-coding removal

asookazian do-not-reply at jboss.com
Mon Aug 13 16:11:50 EDT 2007


The work around to this problem is the following:

in the .xhtml file, use the following code for the restriction:

<!-- in place of s:hasRole restriction -->
<s:div rendered="#{authorizor.display}">
	        <s:button view="/CustomersEdit.xhtml" 
	                    id="edit" 
	                 value="Edit"/>
        </s:div>

where authorizor is a SLSB and the method is isDisplay() that returns boolean.  This works fine and removes the hard-coding that was used in the s:hasRole method param passed.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073716#4073716

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073716



More information about the jboss-user mailing list