1.i had a application which is runing well when i am using the 
faces-config.xml, for example the login page:
        <navigation-rule>
                <from-view-id>/pages/input/login.jsp</from-view-id>
                <navigation-case>
                
                <from-outcome>login_success</from-outcome>
                <to-view-id>/pages/input/mainpage.jsp</to-view-id>
                </navigation-case>
                <navigation-case>
                
                <from-outcome>login_failure</from-outcome>
                <to-view-id>/pages/input/login.jsp</to-view-id>
                </navigation-case>
             </navigation-rule>
2.Now i want to use the seam 1.2 page navigation ability : so i migrate the 
navigation to the pages.xml:
<page view-id="/pages/input/login.jsp">

                
                        <rule if-outcome="login_success">
                                <redirect view-id="/pages/input/mainpage.jsp" />
                        

                        <rule if-outcome="login_failure">
                                <redirect view-id="/pages/input/login.jsp" />
                        
                


        

3.The problem is i can't show the wrong messages when i migrated into 
pages.xml. the codes to deal with the messages in the managed bean are

if (!user.getPassword().equals(this.getPassword())) {
            facesMessages.addToControlFromResourceBundle("loginForm:password",
                    FacesMessage.SEVERITY_ERROR,
                    "login_password_is_not_correct");

            return "login_failure";
        }
 
"loginForm:password" means that i have a form called "loginForm" and a field 
called "password" in the jsp page.

So how to show the wrong messages in the web page  if i choose to use seam 
navigation?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036597
_______________________________________________
jboss-user mailing list
[EMAIL PROTECTED]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to