anonymous wrote : The problem I see here is that you need a way to pass the name of the role you need, and JSF-EL does not support parameters (this is silly, btw).
Agreed. What I have done to simulate the JAAS roles stuff is expose stuff in my PortalUser object (this required for each role that I have.. clumsy but works): | @Transient | public Boolean getServiceManager() { | //userHasRole is a hashmap containing all the user roles | return userHasRole(PortalRole.serviceManagerLiteral); | } | in my view page I then do something like: | <f:subview rendered="#{portalUser.serviceManager}"> | <li><s:link action="#{serviceManagementBean.loadAllServices}" | propagation="end" id="serviceManagement"> | <h:outputText value="#{msgs.serviceManagement}" /> | </s:link></li> | </f:subview> anonymous wrote : Fixed in CVS. Excellent. L View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3934304#3934304 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934304 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user