[jboss-user] [JBoss Seam] - Re: Any way to access login-required flag from EL?

gavin.king@jboss.com do-not-reply at jboss.com
Sat Jun 2 12:37:15 EDT 2007


Or, alternatively:

@Factory("loginRequired", scope=STATELESS, autoCreate=true)
  | public boolean isLoginRequired() {
  |     return Pages.instance().getPage( Pages.getCurrentViewId() ).isLoginRequired();
  | }

And then use #{loginRequired}.

That's less code in the templates ;-)

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

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



More information about the jboss-user mailing list