Portlet Factory, Version 6.1.2
|
|
Grouping inputs
You can organize inputs by including the common groups such as Advanced, HTML Attributes, or Arguments, shown in the IBM® WebSphere Portlet Factory builder call editors or by creating your own input groups.
- To include an Arguments input group in your builder call editor:
- Include one or more input definitions whose base is in the "Advanced" group in the Base.bdef file. For example:
<!-- Adds an Arguments list control to the builder call editor -->
<InputDefinition name="ArgumentsInput" base="com.bowstreet.core.Base.Arguments" />
<!-- Adds an Evaluate Arguments checkbox control to the builder call editor -->
<InputDefinition name="EvalArgsInput" base="com.bowstreet.core.Base.EarlyArgumentEvaluations" />
- Include the Arguments group definition in your builder definition file:
<GroupDefinitions>
<GroupDefinition id="Arguments" base="com.bowstreet.core.Base.Arguments" />
</GroupDefinitions>
- To include an Advanced input group in your builder call editor: The Advanced inputs are builder-specific and the Base.bdef does not include any common Advanced input definitions. You can declare inputs to be in the Advanced group by performing the following steps:
- Set the <Group/> value in your input definition to Advanced for any inputs you want included in the Advanced group. For example,
<InputDefinition name="AdvancedInput1" base="com.bowstreet.core.Base.IndirectValue">
<Prompt>Advanced Input 1</Prompt>
<Group>Advanced</Group>
</InputDefinition>
<!-- Adds a String input to the Advanced group -->
<InputDefinition name="AdvancedInput2" base="com.bowstreet.core.Base.StringData">
<Prompt>Advanced Input 2</Prompt>
<Group>Advanced</Group>
</InputDefinition>
- Include the Advanced group definition in your builder definition file:
<GroupDefinitions>
<GroupDefinition id="Arguments" base="com.bowstreet.core.Base.Arguments" />
<GroupDefinition id="Advanced" base="com.bowstreet.core.Base.Advanced" />
</GroupDefinitions>
Parent topic: About creating builder definitions
|
|