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

    FacesMessages Does not work with jPDL navigation???

    Curtney Jacobs Newbie

      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"?>
       xsi:schemaLocation="http://jboss.com/products/seam/pageflow http://jboss.com/products/seam/pageflow-2.0.xsd"
       <start-state name="startflow">
       <transition name="editUserLogin" to="changePassword"/>
       <page name="changePassword" view-id="/member/userlogin.xhtml">
       <transition name="change" to="verify"/>
       <transition name="cancel" to="userLoginInfo"/>
       <decision name="verify" expression="#{customerUserLoginAction.verify}">
       <transition name="true" to="userLoginInfo">
       <action expression="#{customerUserLoginAction.changePassword}"/>
       <transition name="false" to="changePassword"/>
       <page name="userLoginInfo" view-id="/member/login-info.xhtml">

      Neither of the following works:
      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