The portlet project in this sample can be created by following these steps:
- Create a portlet project with the Faces portlet type selected.
- Import Java beans to the JavaSource folder. These beans are located in the portlet project that is created by clicking the Import link .
- Add data logic to the initial JSP file as follows:
- Add the CustomerList bean to the Page Data view.
- Drop the customers property from the Page Data view to create a Data Table.
- Create the second portlet with the Faces portlet type selected, and
edit the JSP file to include data logic and user interface components:
- Add the TicketList bean to the Page Data view.
- Drop the tickets property from the Page Data view to create a Data Table component.
- Drop Input and Command Button components from palette.
- Drop customerId property from Page Data view onto the Input component.
- Create the third portlet with the Faces portlet type selected, and
edit the JSP file to include data logic and user interface components:
- Add the TicketDetail bean to Page Data view.
- Drop the ticket property from Page Data view to create a table with Output components.
- Drop Input and Command Button components from Palette.
- Drop the ticketId property from the Page Data view onto the Input component.
|