This content has been marked as final.
Show 4 replies
-
1. Re: Page navigation and forms
jimk1723 Mar 10, 2008 7:48 PM (in response to ziphyre)We need your view XHTML and your navigation rules. Did you try including the XML inside backticks?
-
2. Re: Page navigation and forms
ziphyre Mar 11, 2008 11:37 AM (in response to ziphyre)Yep, I tried with and without the xml's, I'll try again with one code snippet at a time:
<?xml version="1.0" encoding="UTF-8"?> <page xmlns="http://jboss.com/products/seam/pages" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd" > <navigation from-action="#{identity.login}"> <rule if="#{identity.loggedIn}"> <redirect view-id="/home.xhtml"/> </rule> </navigation> <navigation from-action="#{registration.beginRegistration}"> <rule if-outcome="register"> <redirect view-id="/register.xhtml"/> </rule> </navigation> </page>
-
3. Re: Page navigation and forms
ziphyre Mar 11, 2008 11:40 AM (in response to ziphyre)<h:form> <div> <h:outputLabel for="username">GSM No:</h:outputLabel> <h:inputText id="username" value="#{identity.username}"/> <h:outputLabel for="password">Password</h:outputLabel> <h:inputSecret id="password" value="#{identity.password}"/> <h:commandButton value="Login" action="#{identity.login}"/> </div> <div> <h:outputLabel for="invitation">Invitation Code</h:outputLabel> <h:inputText id="invitation" value="#{invitation.code}"/> <h:commandButton value="Register" action="#{register.beginRegistration}"/> </div> </h:form>
-
4. Re: Page navigation and forms
ziphyre Mar 11, 2008 4:16 PM (in response to ziphyre)Ok, the fault is in the login.page.xml file
<navigation from-action="#{registration.beginRegistration}"> should be
<navigation from-action="#{register.beginRegistration}">Now my navigation works ok, but I still get in the logs the
authentication failed
message? So my login gets called? Why is that?