Portlet Factory, Version 6.1.2
Using other builders in the generation class
You can add builder calls in the Java code for your own builder in two ways:
- Using the Builder API
- Using the webApp Object
Each way of adding a builder is equally valid. You may add some builder calls with the webApp object and use the Builder API to add other calls in the same generation class.
- About using the builder API
The Builder API allows you to create builder calls in your generation class just as you would create any other Java object.
- About using the WebApp object
To add a Page builder call with the WebApp object:
- Extraction of input values specified in the builder call editor
You can retrieve the input values that the user specifies in the builder call editor by calling the getString() method (or other method, for example, getXML() or getBoolean()) on the builderInputs object passed to the doBuilderCall() method.
- Implementation of generation behavior
Implement the builder generation behavior by implementing the following interface:
- Naming generated objects for high-level builders
When generating object names in high-level builders, the Name input should be used as a prefix, without any underscore.
Library | Support |