Chapter 9 Generating Persistent Objects for Java and JSF Pages


Modifing Default High Level PageFlow Diagram

After generating the default High Level PageFlow, you can define customized pages and pageflows in the class level PageFlow.

All the pages in the default High Level PageFlow diagram have their pre-defined stereotype, e.g., The stereotype for CustomerFind is "FindPage", CustomerEdit is "EditPage", etc. You can add your customized Page.

You can also add new PageFlows to link the pages in the PageFlow diagram, which is similar to adding a transition in a statechart diagram.

Steps To add a new Page:

  1. Select the "State" from the palette, and drag it to the PageFlow diagram, it will create a new Page with the default name.
  2. You can change its name and change its stereotype to Page in its property dialog, e.g., change the name to "Home". This dialog is same with general State.


After create a new Page, when the code generation, a default JSF page and its page bean will be generated.

Steps To add a new PageFlow:

  1. Select "Transition" from Palette
  2. Select the source state, e.g., "Home", to the target state, e.g., "CustomerFind". A default transition will be generated.
  3. Double click the default transition, or right click the default transition and select the context menu "Properties", its property dialog will pop up.


  1. Click "Create" button beside "Trigger Event" list, it will pop up Trigger Event creation dialog. You can input the name, e.g., GoCustomer. Click "OK" to finish the creation of Trigger Event.


  1. Click "OK" in the property dialog of Transition. A new PageFlow will be created.


After you modify the default pageflow, and generate JSF codes, the corresponding default JSF pages, page beans and faces-config file will be updated.

 


Copyright (C) 2006. Sybase Inc. All rights reserved.