In the previous section, you created Guestbook List Screenlet to retrieve and display guestbooks from the Guestbook portlet. You still need a way to retrieve and display each guestbook’s entries, though. You’ll do this by creating another list Screenlet: Entry List Screenlet. This section walks you through the steps required to create it.
Because you use a consistent development model to create Screenlets, similar Screenlets have similar code. As with guestbooks, it makes sense to display entries in a list using a list Screenlet. This means you can reuse most of Guestbook List Screenlet’s code in Entry List Screenlet. You’ll therefore create Entry List Screenlet using the same sequence of steps you used to create Guestbook List Screenlet:
- Getting started: creating the Screenlet’s package and model class.
- Creating the Screenlet’s UI (its View).
- Creating the Screenlet’s Interactor.
- Creating the Screenlet class.
Although this Learning Path section presents complete code snippets, it only discusses the code unique to Entry List Screenlet. Refer back to the previous section for detailed explanations of the code shared with Guestbook List Screenlet. If you get confused or stuck, refer to the finished app that contains the Screenlet code here in GitHub.