Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-549

Conversation propagated by default with h:link

    Details

    • Steps to Reproduce:
      Hide

      Create a web project using Netbeans 6.9RC1 with JSF 2 included as a framework and facelets as the default view technology.

      Show
      Create a web project using Netbeans 6.9RC1 with JSF 2 included as a framework and facelets as the default view technology.

      Description

      I created a long running conversation by running a method on a conversation scoped bean:

      private boolean initialized;
      public void init()

      { if(initialized) return; conversation.begin(); initialized = true; }

      From a facelets page using the JSF2 event system:

      <f:metadata>
      <f:event type="preRenderView" listener="#

      {convoBean.init}

      " />
      </f:metadata>

      If a conversation has been made long-running, the h:link tag will produce links with the conversation query parameter, thereby propagating the conversation whether that was what you wanted or not.

      I.e:

      <p>Link: <h:link outcome="page2.xhtml" value="a link" /></p>
      produces
      <p>Link: <a href="/CdiConvoBug/page2.jsf?cid=3">a link</a></p>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pmuir Pete Muir
                Reporter:
                fissy101 David Beaumont
              • Votes:
                3 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: