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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user