My webMethods Server 10.7 | My webMethods Server Webhelp | My webMethods Server Portlet Reference | Legacy Portlets and Backwards Compatibility | I18N Property Editors Component
 
I18N Property Editors Component
Portlet Title
I18N Property Editors
Portlet Name
wm_i18npropertyeditors
Portlet File Name
wm_i18npropertyeditors.pdp
Top-level Folder
system
JSR168 Portlet?
No
Alias
portlet.i18npropertyeditors
Default Instances of the portlet
None
Property Editors. Page developers use this component to provide specialized user interfaces for editing internationalization-specific portlet preferences on the Portlet Properties page. This component is a collection of custom editors that other portlets can reuse.
The following table lists the collection of legacy property editors provided with the I18N Property Editors Component.
Legacy Property Editor
Description
Country/Region ID Chooser
Provides a drop-down list from which an end user can select a country or region (for example, "Argentina" or "Antarctica").
Locale Chooser
Provides a drop-down list from which an end user can select a locale (for example, "es-AR Spanish (Argentina)" or "en-US English (United States)").
Time Zone Chooser
Provides a drop-down list from which an end user can select a time zone (for example, "America/Argentina/Buenos Aries (Argentine Time)" or "America/Chicago (Central Standard Time)").
Page developers configure this component to add a drop-down list for one of the internationalization properties. For example, to provide an editor for the Country/Region ID, the page developer configures the component to use the type Country/Region ID Chooser. As a result, the view will contain a drop-down list that contains values a user can select for the Country/Region ID property.
For a sample of using this component, see the source for wm_xt_userprofileprovider, which is located in the components\services\directory\services directory. The following is a sample XML from its wm-portlet.xml file:
<preference>
<name>country_region_id</name>
<display-name>Country/Region ID</display-name>
<group>attributes</group>
<scope>content</scope>
<property-editor type="Country/Region ID Chooser">
<param>
<name>validationRegexpMsg</name>
<value />
</param>
<param>
<name>validationRegexp</name>
<value />
</param>
<param>
<name>dhtml</name>
<value>true</value>
</param>
<param>
<name>style</name>
<value>medium</value>
</param>
<param>
<name>onchange</name>
<value />
</param>
</property-editor>
<hidden>false</hidden>
<required>false</required>
<dbo-type>
<data-type>0</data-type>
<data-length>3</data-length>
</dbo-type>
</preference>
Properties for the Editor
type (type)
Required. Identifies the property editor type, which indicates the type of list to provide. Specify Country/Region ID Chooser, Locale Chooser, or Time Zone Choose.
style (style)
Required. Defines the text size for items in the list. Specify small, medium, or large. The default is medium.
onchange (onchange)
Defines the action to take when an end user updates the drop-down list. Specify a command that you defined in the portlet code. The default is blank, which indicates that no action is taken.