The JSF
code generation needs three diagrams to be unify business logic and web
tier
presentation.
You need
one or more:
The
following example is a quick start to explain how to generate code
Create a
UseCase Diagram

1. First
Create a UseCase inside your UseCase
Diagram:


You get the
following usecase

2. Then
Create a Class diagram, a class named
CycleController

Select the
UseCase in charge of the web Interface and click the OK button

You
automatically get

You now
need to add a method and a parameter to your class diagram

Enter the
method name “numberofTimes” and click on the Add button.

Enter the parameter
name and type

You now get a method inside your class diagram

3. Finlay,
you now need to create a statechart
diagram representing the JSF work flow

The
GiveParameter need to have an Effect.
Click on
the transition and open the contextual menu > Add Behavior > Effet

Click on
the

Click on
the Add button


You will
open the New Operation selector, which will display all classes having
parameters and a stereotype “controller_usecase.

You finaly
need to connect your usecase to its Statechart Diagram

Select the
Statechart diagram related to the usecase
