Lab #7 (Visual Page Flow Design)
Overview
Seam provides a powerful visual page flow designer. Using the eclipse based
jBPM process designer, or a text editor, page-flows with dynamic decision points can be designed.
In this lab, you will create the page flow shown below using the eclipse visual
page flow tool.

Lab Instructions
- Open your seam command window/shell
- type: seam switch-project (helloworld-lab7 should be entered as the project name)
- CHEAT:
- type: seam labs-cheat (Enter '7' for the lab cheat you want to apply)
- NO CHEAT:
- Create a few pages
- type: cd @seamHome@
- (3 times) type: new-form (You can use the same component for multiple pages, but change the page name.)
- Edit the Facelets
- Open Eclipse:
- Edit the facelets so that you access the page-flow helloworld-lab7/view/*.xhtml
- Create a new pageflow
- Open Eclipse:
- In the helloworld/resources directory, create a new page-flow File > New > Other > JBoss Seam > Page Flow
- Edit the Seam Pages Configuration File
- Open Eclipse:
- Edit the helloworld/resources/WEB-INF/pages.xml file. This is where you bind Seam
to the page flow you created.
- type: cd @seamHome@
- type: seam explode restart
- Goto URL: localhost:8080/helloworld-lab7
- type: seam unexplode (Will undeploy the exploded EAR file)
Key Files
@workspaceHome@@sep@helloworld-lab7@sep@resources@sep@WEB-INF@sep@components.xml
@workspaceHome@@sep@helloworld-lab7@sep@resources@sep@WEB-INF@sep@pages.xml
@workspaceHome@@sep@helloworld-lab7@sep@resources@sep@pageflow.jpdl.xml
@workspaceHome@@sep@helloworld-lab7@sep@src@sep@com@sep@mydomain@sep@FlowBean.java
@workspaceHome@@sep@helloworld-lab7@sep@view@sep@first-page.xhtml
@workspaceHome@@sep@helloworld-lab7@sep@view@sep@second-page.xhtml
@workspaceHome@@sep@helloworld-lab7@sep@view@sep@third-page.xhtml
Home | Next