About your problem :

My brain was off-line yesterday when I replied. The error in your jsp page is 
that : your <h:commandButton> tag in page two,... aren't inside a <h:form>.
I'm suprised you didn't have exception. I use facalets, when when it found a 
commandButton or commandLink outside form, it raise an error.

About your question :
I don't understand it. I only use the two fragment I posted.
action's value of commanButton (in jsp) match name's value of transaction in 
the page.

so you could use a jpdl like :

  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <pageflow-definition
  |   name="purchaseOrder1">
  |    <start-page name="PurchaseStartPage">
  |       <redirect/>
  |       <transition name="toship" to="ShipTo"></transition>
  |    </start-page>
  |    <page name="ShipTo" view-id="/shipTo.jsp">
  |       <redirect/>
  |       <transition name="back" to="PurchaseStartPage"></transition>
  |       <transition name="next" to="BillTo"></transition>
  |    </page>
  |    <page name="BillTo" view-id="/billTo.jsp">
  |       <redirect/>
  |       <transition name="next" to="PaymentMethod"></transition>
  |       <transition name="back" to="ShipTo"></transition>
  |    </page>
  |    <page name="PaymentMethod" view-id="/paymentMethod.jsp">
  |       <redirect/>
  |       <transition name="back" to="BillTo"></transition>
  |       <transition name="next" to="Item"></transition>
  |    </page>
  |    <page name="Item" view-id="/item.jsp">
  |       <redirect/>
  |       <transition name="next" to="Receipt"></transition>
  |       <transition name="back" to="PaymentMethod"></transition>
  |    </page>
  |    <page name="Receipt" view-id="/receipt.jsp">
  |       <redirect/>
  |       <end-conversation transition="end"/>
  |    </page>
  | </pageflow-definition>      
  | 

and build you jsp page like :

  | <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
  | <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
  | <html>
  | <head>
  | <title>PurchaseOrder1</title>
  | </head>
  | <body>
  | <h1>shipTo</h1>
  | <f:view>
  | <h:form>
  |     <h:outputText value="Test: #{purchaseOrder1.number}" rendered="true"/>
  | ...
  |     <br/>
  |     <h:commandButton type="submit" value="previous" action="back"/>
  |     <h:commandButton type="submit" value="next" action="next"/>
  | </h:form>
  | </f:view>
  | </body>
  | </html>     
  | 



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

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


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to