Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 1.2.1.GA
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Seam 1.2.1.GA, MyFaces 1.1.6 nighly from march, Facelets 1.1.11

      Description

      <s:link action="/test.xhtml" propagate="none"/>

      behaves diffrently from

      <h:commandLink action="/test.xhtml">
      <f:param name="conversationPropagation" value="none"/>
      </h:commandLink>

      The s:link propagates the conversation to the next view, while the h:commandLink doesn't.

      Here are some code to replicate this behavior:

      ----------------------- test1.xhtml
      <?xml version='1.0' encoding='UTF-8'?>
      <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:s="http://jboss.com/products/seam/taglib">
      <head></head>
      <body>
      <h:form>

      <h:commandLink value="Refresh" action="/test1.xhtml"/>
      <br/><br/>
      <!-- Doesn't work expected - Propagates the conversation. -->
      <s:link value="To test 2 (s:link)" action="/test2.xhtml" propagation="none"/>
      <br/>
      <!-- Works as expected - does not propagate the conversation -->
      <h:commandLink value="To test 2 (h:commandLink no propagate)" action="/test2.xhtml">
      <f:param name="conversationPropagation" value="none"/>
      </h:commandLink>
      <br/>
      <!-- Works as expected - propagates the conversation -->
      <h:commandLink value="To test 2 (h:commandLink propagates)" action="/test2.xhtml"/>
      </h:form>
      </body>
      </html>

      ----------------------- test2.xhtml
      <?xml version='1.0' encoding='UTF-8'?>
      <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:s="http://jboss.com/products/seam/taglib">
      <head></head>
      <body>
      <h:form>
      <s:link value="To test 1" action="toTest1"/>
      </h:form>
      </body>
      </html>

      ----------------------- The relevant parts from pages.xml
      <page view-id="/test1.xhtml" >
      <begin-conversation join="true"/>
      </page>

      <page view-id="/test2.xhtml">
      <navigation>
      <rule if-outcome="toTest1">
      <begin-conversation/>
      <redirect view-id="/test1.xhtml"/>
      </rule>
      </navigation>
      </page>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                gavin.king Gavin King
                Reporter:
                cdanielw cdanielw
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: