My First Pageflow
ohughes Jun 9, 2009 3:47 PMHi,
I am writting my first pageflow, and am getting frustrated and confused.
Firstly, I manually enter the URL of the page that starts the pageflow. Now that the page is loaded, and the appropriate pageflow is also initiated, I need to perform some actions on this page, well basically perform a search, and then from the selection of a row from the results found, step to the next part of the pageflow (which is another search screen).
Unfortunately, when I click on search, or any other button that I have on screen, no methods are being called in the seam component supporting the page (whereas when it is not in a pageflow, the methods are being called without any problem).
Another slight problem I have, is to actually initiate the Pageflow, I physically have to put in the URL into the browser, because if I select the option from the menu, it doesn't appear to initiate the pageflow. It displays the page and allows me to perform a search, etc, but it is not in the pageflow. I have tried it with both start-state and start-page, and the only one that initiates the workflow is the start-page when I manually enter the URL.
Any thoughts, ideas, tips?
- pageflow.jpdl.xml
<?xml version="1.0" encoding="UTF-8"?> <pageflow-definition xmlns="http://jboss.com/products/seam/pageflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://jboss.com/products/seam/pageflow http://jboss.com/products/seam/pageflow-2.0.xsd" name="Error Correction Wizard"> <!-- <start-state> <transition to="dataSourceSelection"/> </start-state>--> <start-page name="begin" view-id="/error-correction/data-source-selection.seam"> <transition name="next" to="cdrSelection"> </transition> <transition name="cancel" to="cancelTest"> </transition> </start-page> <page view-id="/error-correction/data-source-selection.seam" name="dataSourceSelection"> <redirect /> </page> <page name="cdrSelection" view-id="/error-correction/cdr-selection.seam" redirect="true"> </page> <page name="cancelTest" view-id="/home.seam"> <end-conversation before-redirect="yes"/> <redirect /> </page> </pageflow-definition>
- Menu item selection (session scoped seam component)
@Begin(pageflow="Error Correction Wizard", join=true, flushMode=FlushModeType.MANUAL) public final String openCDRCorrectionUtility() { return "/error-correction/data-source-selection.jspx"; }
Thanks.
Oh, this is using SEAM 2.1.1.GA and Java 1.6