[jboss-user] [JBoss Seam] - Re: conversation switcher and pageflow

venkateshbr do-not-reply at jboss.com
Mon Mar 26 02:59:18 EDT 2007


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


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031473#4031473

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031473



More information about the jboss-user mailing list