Portlet Factory, Version 6.1.2
Formatted Text builder inputs
This topic describes the inputs for the Formatted Text builder.
Table 1. Formatted Text builder inputs Input name Description Name Name for this builder call. The WebSphere Portlet Factory Designer displays this name in the builder call list. Page Location Page or pages on which this builder call acts. Type
- Date
- Displays the value in one of the supported date formats.
- Number
- Displays the value in one of the supported numeric formats.
Editable
- Yes
- Allows the user to change the displayed value. The output will be presented within an input box. Selecting this parameter allows the builder to retrieve data.
- No
- Prevents the user from changing the displayed value.
Date Input Format If the value type is date, use this field to describe the date input format. You can choose one of the following formats:
- E MMM dd yyyy hh:mma
- Example: Thu Dec 13 1962 12:00AM
- MMM dd yyyy hh:mma
- Example: Dec 13 1962 12:00AM
- yyyy-MM-dd hh:mm:ss
- Example: 1962-12-13 12:00:00
- long
- Example: 48923332
Date Output Format If the value type is date, use this field to choose the dates desired output format. You can choose one of the following formats:
- E MMM dd yyyy hh:mma
- Example: Thu Dec 13 1962 12:00AM
- MMM dd yyyy hh:mma
- Example: Dec 13 1962 12:00AM
- yyyy-MM-dd hh:mm:ss
- Example: 1962-12-13 12:00:00
Note: You can also enter directly into this field any valid Java date format.
Number Output Format If value type is number, use this field to choose one of the following number formats:
- Currency
- Displays number output in dollars and cents as follows: $12.34
- Percent
- Displays number output in percent as follows: 12.35%
Note: You can also type directly into this field any valid Java number format.
Value The value entered here can be a date or a number. This value can also be an indirect reference in the form: ${Variables/value}
Replace Tag Contents Enabled by default. If checked, prompts the builder to replace all the contents within the specified tag. Disable this input if you want the builder to append its output to the existing text within the specified tag. Handle Target Element If Add is selected, the builder adds its contents to the specified span tag. This is the default selection. If Replace is selected, this parameter replaces the entire tag that it is being placed on and removes all the content within the specified span tag.
This parameter can be used in conjunction with the Replace Tag Contents parameter to remove span tag contents while maintaining the actual span tag. You can use the Handle Target Element input Replace option on its own to replace the span tag along with its contents.
For example:
If Add is selected and Replace Tag Contents is disabled:
<SPAN name="Default">Text1 is here:<input type="text" value="100%"/></SPAN><span>Found Tag1</span>If Add is selected and Replace Tag Contents is enabled (the default settings):
<SPAN name="ReplaceContents"><input type="text" value="100%"/></SPAN><span>Found Tag1</span>If Replace is selected:
<input type="text" value="100%"/>Parent topic: Formatted Text builder
Library | Support |