4 Replies Latest reply on May 21, 2009 11:41 PM by bob122480

    Seam and FacesMessages not being displayed

    bob122480
      I have something like

      <node name="list">
         <event type="node-enter">
           <action class="group.Action">
             <outcome>Main</outcome>

      ..

      in the Action.execute method I make a call to FacesContext.addMessage and the message is being enqueued, but it is never dispalyed and looks as though it is just dumped.  I have a <tr:messages/> tag in my Main.jspx, so I don't understand why these messages are not being displayed.  Any ideas?
        • 1. Re: Seam and FacesMessages not being displayed
          gonorrhea

          when you see in the console/log that your FacesMessages are being queued, that means they were not rendered in your JSF page.  I use <rich:messages> as it automatically reRenders.

          • 2. Re: Seam and FacesMessages not being displayed
            bob122480

            I tried that as well, but had no luck. The jsf lifecylce is never reaching the render response phase for some reason because i think the action is doing a redirect.  Is there a way to avoid having the action skip over the render response phase, so they are displayed?

            • 3. Re: Seam and FacesMessages not being displayed
              gonorrhea

              You will need to determine why the RENDER RESPONSE phase is being skipped.


              I'm assuming that the INVOKE APPLICATION phase is happening.  So your action method is being executed successully.


              What does that action method return (e.g. void, String).


              Also, do you have any relevant descriptor info in pages.xml for that page and/or action?


              Any exceptions in the server.log after INVOKE APPLICATION phase?

              • 4. Re: Seam and FacesMessages not being displayed
                bob122480

                yes the invoke application successfully begins and ends, but then a new lifecycle begins without executing the render response phase.


                the action method returns void.



                i don't have any descriptor info in the pages.xml


                no exceptions in the server.log after INVOKE APPLICATION