Chapter 3. Generic MVC Portlets
We discussed the Service-Builder and the development environment in the previous chapter. It is time to develop JSR-286 portlets for the intranet or Internet website, or WAP site. First of all, let's have a closer look at generic portlets with the Model-View-Controller (MVC) architecture. The Model represents the business or database code, the View represents the page design code, and the Controller represents the navigational code. Normally, JSP files are used to build the view for portlets.
This chapter first introduces how to develop a portlet project with the default templates, focusing on the view part and the portlet structure. It then addresses how to construct basic MVC portlets by viewing the title and adding an action, as well as how to build advanced MVC portlets. Finally, it discusses how to build and re-build services, to bring portlets into the Control Panel, to set security and permissions, use dynamic queries, to use custom queries, and...