[jboss-user] [JBoss Seam] - Re: Identity.loggedIn and Session expiring

b.reeve do-not-reply at jboss.com
Mon Dec 17 13:45:21 EST 2007


Thank you for the answers.
anonymous wrote : 
  | Not yet implemented. This is the best way to do what you are AFAICS. 
  | 

Does this mean that there are plans for adding this to future release?

anonymous wrote : 
  | Null in JSF means stay on the same page.
  | 
But I am getting the page navigated according to some rule (defined in pages.xml) when the return type is null.


  | 1. Also, Is there a way I can disable Seam from adding the default seam messages to FacesMessage apart from giving a value for that key in the resource bundle?
  | 
  | 2. Is there some way to do something like,
  | 
  | pages.xml
  | 
  |   | <page view-id="/login.xhtml" >
  |   |    <navigation from-action="#{identity.login}" >
  |   |       <rule if="#{identity.loggedIn} >
  |   |           <evaluate="#{loginBean.navigation}" >
  |   |              <rule if-outcome="pageA" >
  |   |                 <redirect view-id="/pageA.xhtml" />
  |   |              </rule>
  |   |              <rule if-outcome="pageB" >
  |   |                 <redirect view-id="/pageB.xhtml" />
  |   |              </rule>
  |   |              <rule if-outcome="landing" >
  |   |                 <redirect view-id="/index.xhtml" />
  |   |              </rule>
  |   |           </evaluate>
  |   |        </rule>
  |   |    </navigation>
  |   | </page>
  |   | 
  | 
  | so that my evaluate would be evaluated only if certain condition is met and not always.
  | 
  | Thanks again for helping!

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

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



More information about the jboss-user mailing list