Faces portlet (using the IBM portlet API) build it yourself

The portlet project in this sample can be created by following these steps:

  1. Create a portlet project with the Faces portlet type selected.
  2. Import Java beans to the JavaSource folder. These beans are located in the portlet project that is created by clicking the Import link .
  3. 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.
  4. 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.
  5. 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.