This content has been marked as final.
Show 4 replies
-
1. Re: conversation switcher and pageflow
gavin.king Mar 24, 2007 1:51 PM (in response to venkateshbr)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.
Thanks. -
2. Re: conversation switcher and pageflow
venkateshbr Mar 26, 2007 2:59 AM (in response to venkateshbr)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" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" template="/WEB-INF/template.xhtml"> <ui:define name="topnav"> <ui:include src="/WEB-INF/incl/store_nav.xhtml"> <ui:param name="page" value="cart" /> </ui:include> </ui:define> <ui:define name="sidebar"> <ui:include src="/WEB-INF/incl/login.xhtml" /> </ui:define> <ui:define name="body"> <f:view> <h:form> <table border="0" cellspacing="4" cellpadding="2" width="100%" align="center"> <tr> <td align="center" class="pageHeading"><h:outputText value="Workspaces" /></td> </tr> </table> <table border="0" cellspacing="2" cellpadding="4" width="100%" align="center"> <tr> <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" rowClasses="dvdtableodd,dvdtableeven" rendered="#{not empty conversationList}"> <h:column> <f:facet name="header">Workspace</f:facet> <h:commandLink action="#{entry.select}" value="#{entry.description}" /> <h:outputText value="[current]" rendered="#{entry.current}" /> </h:column> <h:column> <f:facet name="header">Activity</f:facet> <h:outputText value="#{entry.startDatetime}"> <f:convertDateTime type="time" pattern="hh:mm a" /> </h:outputText> <h:outputText value=" - " /> <h:outputText value="#{entry.lastDatetime}"> <f:convertDateTime type="time" pattern="hh:mm a" /> </h:outputText> </h:column> <h:column> <f:facet name="header">Action</f:facet> <h:commandButton action="#{entry.select}" value="switch" /> <h:commandButton action="#{entry.destroy}" value="destroy" /> </h:column> </h:dataTable></td> </tr> </table> </h:form> </f:view> </ui:define> </ui:composition>
I added a outputlink to the login.xhtml so that i can switch to the conversations from the link.<h:outputLink value="/seam-dvd/conversations.seam"> Workspaces </h:outputLink>
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" no-conversation-view-id="/newuser/account.xhtml"> <description>Contact Details</description> <redirect/> <transition name="prev" to="account"/> <transition name="next" to="card"/> </page> <page name="card" view-id="/newuser/card.xhtml" no-conversation-view-id="/newuser/account.xhtml"> <description>Card Details</description> <redirect/> <redirect/> <transition name="prev" to="contact"/> <transition name="next" to="complete"> <action expression="#{editCustomer.saveUser}"/> </transition> </page>
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.
regards,
Venkatesh -
3. Re: conversation switcher and pageflow
gavin.king Mar 26, 2007 12:29 PM (in response to venkateshbr)Sure, go ahead and create the issue report.
-
4. Re: conversation switcher and pageflow
gavin.king Jun 18, 2007 1:29 PM (in response to venkateshbr)This problem is now fixed in CVS.