Portlet Factory, Version 6.1.2
Generation class
The generation class implements all the logic to be executed by the builder during generation. In this class, you can automate the addition of elements to the web application, add builders to the model, that operate on one or more pages in the model, and perform any other logic needed during generation.
Depending on how your builder affects the WebApp, your generation class will implement either the WebAppBuilder interface or the WebAppControlBuilder interface.
A builder can affect the web application in two ways:
- It can add elements to the web application. Elements that can be added to the web application include:
- Linked objects
- Linked models
- Imported pages
- Event declarations and handlers
- Variables
- It can modify elements in the web application.
Some builders modify pages, adding or modifying controls on those pages. Builders can also modify other elements in the web application. For example, builders can add to the structure of a variable and add actions to an action list.
For a definitive list of builders that operate on the structure of the web application, see the builders listed as WebApp builders in the builder picker. For the list of builders that can modify the elements in a web application, see the builders listed as JSP builders in the builder picker.
Parent topic: About adding elements to pages in the web application
Library | Support |