1 Reply Latest reply on May 14, 2009 12:13 PM by israel.bgf

    Conversation Propagation Richfaces

    israel.bgf
      I read that the s:conversationPropagation was killing the form submit in the past, but i thought that it was already solved. But, i'm still getting this issue. Here is my example (can be copied and pasted in any page to test it).

                      <a4j:form id="form">
                              <h:outputText value="Longrunning? #{conversation.longRunning}"/> <br/>
                              <h:outputText value="Nested? #{conversation.nested}"/> <br/>
                              <a4j:commandButton action="#{conversation.begin}" value="Begin" reRender="form"/>
                              <a4j:commandButton action="#{conversation.begin(true, true)}" value="Nest" reRender="form"/>
                              <a4j:commandButton action="#{conversation.end}" value="End" reRender="form"/>
                      </a4j:form>
                     
                      <br/>
                     
                      <a4j:form id="form2">
                              <h:outputText value="Longrunning? #{conversation.longRunning}"/> <br/>
                              <h:outputText value="Nested? #{conversation.nested}"/> <br/>
                              <a4j:commandButton action="#{conversation.isLongRunning()}" value="Begin" reRender="form2">
                                      <s:conversationPropagation type="begin"/>
                              </a4j:commandButton>
                              <a4j:commandButton action="#{conversation.isLongRunning()}" value="Nest" reRender="form2">
                                      <s:conversationPropagation type="nest"/>
                              </a4j:commandButton>
                              <a4j:commandButton action="#{conversation.isLongRunning()}" value="End" reRender="form2">
                                      <s:conversationPropagation type="end"/>
                              </a4j:commandButton>
                      </a4j:form>

      The first form works, or almost. In fact pressing the sequence "begin","nested" and "end", i would think that the "Longrunning" would be true and the "Nested" would be false, but that's not true! Why is that? Did i miss something?

      And the s:conversationPropagation, supress the form submit after the first button click. Is it a know issue?