5 Replies Latest reply on Oct 31, 2007 7:58 AM by pmuir

    Seam + Richfaces + Pageflow problem

    sebasfiorent

      This is the scenario. I have a page with a richfaces commandbutton which haves in the action attribute a pageflow transition (defined in jpdl) that stays in the same page (there is a condition that for testing purposes always return false, which means to stay in the page). The expected behavior is to re render the faces messages. In any case, the page gets fully re rendered, in other words, no ajax re render. But If I put in the action parameter a method binding, that returns null (or a void method) the page doesn't get re rendered and works as expected.
      I am doing something wrong? I think that something with the PhaseListeners or something else is working wrong.

      Any help will be appreciated.
      Regards
      Sebastian

        • 1. Re: Seam + Richfaces + Pageflow problem
          sebasfiorent

          Another thing that doesn't work is the rich:include componente. If you use faces-config (uggg) navigation rules, it works as expected, but if you use jpdl navigation simply it doesn't work.

          Regards
          Sebastian

          • 2. Re: Seam + Richfaces + Pageflow problem
            sebasfiorent

            In http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096257#4096257 alexsmirnov pointed to me that this is a know issue within seam. By the way, within jpdl pageflow xml, can I issue a "null" transition, i.e., to stay in the page? Remember, I have a decision in the jpdl, and if some condition is met, I need to stay within the page and give a "null" as outcome so ajax4jsf renders only the changed parts (a facesmessages).

            Regards
            Sebastian

            • 3. Re: Seam + Richfaces + Pageflow problem
              pmuir

              Post the pageflow and the relevant xhtml snippets.

              • 4. Re: Seam + Richfaces + Pageflow problem
                sebasfiorent

                 

                "pete.muir@jboss.org" wrote:
                Post the pageflow and the relevant xhtml snippets.


                For the first issue, it's simple. I think that is a new feature within pageflow.xsd. The feature would be "abort" pageflow or "stay in page" (which means to issue a null outcome, so ajax4jsf recognizes and can make ajax responses).

                For the second one (the one which richfaces cannot navigate using seam pageflow) the xhtml is:

                A.XHTML

                 <h:panelGroup id="wizard">
                 <a:include id="idInclude" viewId="B.XHTML" />
                 </h:panelGroup>
                


                And B.XHTML is:

                <tr:panelBox id="idPanel12" background="medium" inlineStyle="width:100%">
                 <trh:rowLayout id="idPanel13" width="100%">
                 <trh:cellFormat id="idPanel14" halign="center">
                 <tr:panelGroupLayout id="idPanel15" layout="horizontal">
                 <f:facet name="separator">
                 <tr:spacer width="10" height="1" />
                 </f:facet>
                 <a:commandButton value="Siguiente >>" style="float:left" action="next" reRender="wizard"/>
                 <a:commandButton value="Limpiar" style="float:right" />
                 </tr:panelGroupLayout>
                 </trh:cellFormat>
                 </trh:rowLayout>
                </tr:panelBox>
                
                


                And the jpdl is:
                <page name="A" view-id="/A.xhtml">
                 <transition name="next" to="B">
                 </transition>
                </page>
                
                <page name="B" view-id="/B.xhtml">
                 <transition name="first" to="A">
                 </transition>
                </page>
                


                Using JPDL doesn't work,as alexsmirnov pointed to me in richfaces forum (see my previous post in this topic).

                But if I use faces-config.xml, it works. This is the relevant faces-config.xml:

                 <navigation-rule>
                 <from-view-id>/A.xhtml</from-view-id>
                 <navigation-case>
                 <from-outcome>next</from-outcome>
                 <to-view-id>/B.xhtml</to-view-id>
                 </navigation-case>
                 </navigation-rule>
                 <navigation-rule>
                 <from-view-id>/B.xhtml</from-view-id>
                 <navigation-case>
                 <from-outcome>first</from-outcome>
                 <to-view-id>/A.xhtml</to-view-id>
                 </navigation-case>
                 </navigation-rule>
                


                • 5. Re: Seam + Richfaces + Pageflow problem
                  pmuir

                  For the first issue, please, as I asked, post your jpdl and xhtml - I want a clear view of your use case.

                  For the second issue, please file a feature request in Seam JIRA and we'll see what we can do.