The input definitions that you specify in the builder definition determine the input value type (for example, string and boolean) and the user interface component that the IBM® WebSphere® Portlet Factory servlet generates for your builder call editor.
To streamline the creation of input definitions, WebSphere Portlet Factory includes Base.bdef and WebAppBase.bdef builder definitions. Each of these base builder definitions contains predefined input definitions that include specialized editors. These specialized input definitions are called widgets and combine the input value type (for example, string and boolean) with a specific editor. For example, the IndirectComboBox widget returns a string value determined by a choice in a combo box or by the reference chooser, allowing the user to specify a value from a form input, variable, or method for the input value.
In your builder definition, you can simply refer to the input definition in the Base.bdef file to incorporate the specified widget into the builder call editor for your builder:
<InputDefinition name="Color" base="com.bowstreet.core.Base.Select">
<Prompt>Choose a Color</Prompt>
<Argument name="listData">Blue, Red, Green</Argument>
This input definition prompts the builder call editor to display a list box with Blue, Red, Green available as choices and a prompt of Choose a Color
. The input value is named Color
Parent topic: About adding elements to pages in the web application