The JSR 168 sample portlet shown in this chapter will allow you to implement the following:
You will enter your name and select the color that it is displayed in.
You will also be able to add new colors to use.
A user with administration rights will be able to change the greeting that appears before your name.
You will use the PortletPreferences object to store the colors and greeting.
A JavaBean, stored in the PortletSession, will store the currently selected color, name, and greeting.
The PortletPreferencesValidator will be used to validate the color before adding it to the portletpreferences object.
The portlet will show the render and action phases of the JSR 168 portlet API.
It will also display the View, Edit, Config, and Help modes. ...