[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:30:22 EDT 2007
Add the following class:
@Scope(ScopeType.APPLICATION)
| @Intercept(NEVER)
| @Name("org.jboss.seam.core.pages")
| @Install(precedence=BUILT_IN)
| public class Pages extends org.jboss.seam.core.Pages {
|
| public getCurrentPage() {
| return getPage( getCurrentViewId() );
| }
|
| }
And then use #{org.jboss.seam.core.pages.currentPage.loginRequired}.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050681#4050681
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050681
More information about the jboss-user
mailing list