4 Replies Latest reply on Jun 18, 2007 1:29 PM by Gavin King

    conversation switcher and pageflow

    Venkatesh BR Newbie

      The conversation switcher doesn't seem to work when the conversation is a pageflow. I am navigating through a page flow and in between i switch to a different menu option and do something else. when i try to switch back to the conversation using the conversation switcher it redirects me to the exact page where i had stopped. But after this i cannot navigate in the pageflow.

      Will the conversation switcher work when the conversation is a pageflow?

        • 1. Re: conversation switcher and pageflow
          Gavin King Master

          um .... I guess it is supposed to work, but I'm not sure if any of us have ever tried it out. I'm not surprised if its broken.

          If you can create a really simple test case that demonstrates the problem, please create an issue in JIRA, and attach the test case.


          • 2. Re: conversation switcher and pageflow
            Venkatesh BR Newbie

            Hi gavin,
            I was able to reproduce this with the dvd store example.
            i added new facelet conversations.xhtml

            <ui:composition xmlns="http://www.w3.org/1999/xhtml"
             <ui:define name="topnav">
             <ui:include src="/WEB-INF/incl/store_nav.xhtml">
             <ui:param name="page" value="cart" />
             <ui:define name="sidebar">
             <ui:include src="/WEB-INF/incl/login.xhtml" />
             <ui:define name="body">
             <table border="0" cellspacing="4" cellpadding="2" width="100%"
             <td align="center" class="pageHeading"><h:outputText
             value="Workspaces" /></td>
             <table border="0" cellspacing="2" cellpadding="4" width="100%"
             <td align="center"><h:outputLabel styleClass="message"
             value="There are no workspaces"
             rendered="#{empty conversationList}" /> <h:dataTable
             value="#{conversationList}" var="entry" width="70%"
             styleClass="dvdtable" headerClass="dvdtablehead"
             rendered="#{not empty conversationList}">
             <f:facet name="header">Workspace</f:facet>
             <h:commandLink action="#{entry.select}"
             value="#{entry.description}" />
             <h:outputText value="[current]" rendered="#{entry.current}" />
             <f:facet name="header">Activity</f:facet>
             <h:outputText value="#{entry.startDatetime}">
             <f:convertDateTime type="time" pattern="hh:mm a" />
             <h:outputText value=" - " />
             <h:outputText value="#{entry.lastDatetime}">
             <f:convertDateTime type="time" pattern="hh:mm a" />
             <f:facet name="header">Action</f:facet>
             <h:commandButton action="#{entry.select}" value="switch" />
             <h:commandButton action="#{entry.destroy}" value="destroy" />

            I added a outputlink to the login.xhtml so that i can switch to the conversations from the link.
             value="/seam-dvd/conversations.seam"> Workspaces

            Modified the newuser pageflow to add description to all the pages. I guess with the new seam build descriptions are mandatory to be in the conversationList.

            <page name="contact" view-id="/newuser/contact.xhtml"
             <description>Contact Details</description>
             <transition name="prev" to="account"/>
             <transition name="next" to="card"/>
             <page name="card" view-id="/newuser/card.xhtml"
             <description>Card Details</description>
             <transition name="prev" to="contact"/>
             <transition name="next" to="complete">
             <action expression="#{editCustomer.saveUser}"/>

            Deployed the example.

            I go to the home page of dvdstore example

            Click on Create Account.

            Enter the username and password and click continue. now the pageflow would have started and will be at contact details page.

            Without going further I Click on the home link.

            I look at the conversations page by clicking on the workspaces link i added to the login.xhtml to check the workspaces.

            I can see that there is a workspace listed with the name Contact Details.

            I switch to this workspace. It takes me back to the contact details page.

            I enter valid data and when i say continue it doesn't move beyond this page. This is the exact same problem we are facing with our application.

            Is this test case sufficient. Can i report this in JIRA.


            • 3. Re: conversation switcher and pageflow
              Gavin King Master

              Sure, go ahead and create the issue report.

              • 4. Re: conversation switcher and pageflow
                Gavin King Master

                This problem is now fixed in CVS.