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

matt.drees do-not-reply at jboss.com
Tue Aug 7 22:00:14 EDT 2007


Not sure if this will work, but you could look into using an el function to return the string.  So, something like: 

  | "#{s:hasRole(my:admin())}"
  | 

Of course, now you're "hard coding" a method name in a string, which is probably as difficult to refactor as the string itself.  Personally, I think you're better off using a straight string.

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

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



More information about the jboss-user mailing list