2 Replies Latest reply on Oct 3, 2007 6:34 PM by pmuir

    FacesMessages Does not work with jPDL navigation???

    curtney

      Greetings everyone!!

      I am using Seam 2.0 Beta 1 running on JBoss 4.2.0.GA.

      The problem I am having is that I am unable to show error messages on forms that are submitted in a jPDL flow / page navigation. I can see that the error messages were enqueued, but somehow they are not displayed on the page when my flow navigates back to that page. Here is an example of a simple flow that does not work if validation fails.

      <?xml version="1.0"?>
      
      <pageflow-definition
       xmlns="http://jboss.com/products/seam/pageflow"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://jboss.com/products/seam/pageflow http://jboss.com/products/seam/pageflow-2.0.xsd"
       name="changepassword">
      
       <start-state name="startflow">
       <transition name="editUserLogin" to="changePassword"/>
       </start-state>
      
       <page name="changePassword" view-id="/member/userlogin.xhtml">
       <redirect/>
       <transition name="change" to="verify"/>
       <transition name="cancel" to="userLoginInfo"/>
       </page>
      
       <decision name="verify" expression="#{customerUserLoginAction.verify}">
       <transition name="true" to="userLoginInfo">
       <action expression="#{customerUserLoginAction.changePassword}"/>
       </transition>
       <transition name="false" to="changePassword"/>
       </decision>
      
       <page name="userLoginInfo" view-id="/member/login-info.xhtml">
       <end-conversation/>
       <redirect/>
       </page>
      
      </pageflow-definition>

      
      Neither of the following works:
      
      facesMessages.addFromResourceBundle("customerChangePasswordError");
      
      facesMessages.add("changePasswordForm:newPasswordConfirm", new FacesMessage(FacesMessage.SEVERITY_ERROR, "Re-enter new password.", "Re-enter new password."));
      
      



      I have being trying for 3 days now and I am unable to solve this problem. I have search the forum and did not find any solution. However, there was one mention of a similar problem but with no resolution.

      So, does FacesMessages works with jPDL page navigation? I really need some help with this. Thanks