Now we can define the classes defining our domain. We can import the project from Eclipse following these steps:
In the File menu select import...Select “General/Existing Projects into Workspace” and click next. In “select root directory” click browse and select the root directory of the project where the file build.xml is located. In this case /home/projects/scrooge.Click in “finish” button.
In the workspace of Eclipse a project called “scrooge” will appear and inside it a set of packages containing different aspects of the application. Inside the com.gesfor.gesfor.domain package create the following classes:
User, Product, Expense, Bill, Saving.
Don't forget to include the correct imports in the classes.
By default Roma empty project shows the HomePage class, which is under the domain package of view. View stands for View Aspect. So HomePage is a domain class but regarding view aspect only. Now we rename the button method in HomePage.java to see our User instance. We add this:
@FlowAction(next=UsersTable.class)
public void editUsersTable() {}
(@FlowAction annotation tells to show an instance of class User as next step)
0 Ficheros adjuntos