I have a similar request for my page navigation. We have two login pages in our project. There is a registration page which does not require login, but when the user registers successful, then no login should be required. Also there should be a login page for already registered users. I've defined my pages.xml as follows:
<?xml version="1.0" encoding="UTF-8"?> | <!DOCTYPE pages PUBLIC | "-//JBoss/Seam Pages Configuration DTD 1.2//EN" | "http://jboss.com/products/seam/pages-1.2.dtd"> | <pages login-view-id="/login.xhtml"> | | <page view-id="/login.xhtml" login-required="false"> | <param name="c" value="#{campaign.id}" /> | | <action if="#{validation.succeeded}" | execute="#{identity.login()}" /> | | <navigation> | <rule if="#{identity.loggedIn}"> | <redirect view-id="/invite.xhtml" /> | </rule> | </navigation> | </page> | | <page view-id="/register.xhtml" login-required="false"> | <param name="c" value="#{campaign.id}" /> | | <action if="#{validation.succeeded}" | execute="#{register.register(person)}" /> | </page> | | <page view-id="*" login-required="true"> | <navigation from-action="#{identity.logout()}"> | <redirect view-id="/login.xhtml" /> | </navigation> | </page> | | <exception class="org.jboss.seam.security.NotLoggedInException"> | <redirect view-id="/login.xhtml"> | <message severity="warn">Please login first.</message> | </redirect> | </exception> | | </pages> | But the register.xhtml page does redirect to the login.xhtml page... Any ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054727#4054727 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054727 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
