This property editor enables you to define the urlLang
property or the lang
property of a component, such as the urlLang
property of a Hyperlink or the lang
property of a Grid Panel. You open the property editor by clicking the ellipsis button (...) next to the urlLang
property or the lang
property in the component's Properties window.
urlLang
property is equivalent to the HTML hreflang
attribute. It indicates the language of the target resource of a link.lang
property is equivalent to the HTML lang
attribute. It indicates the language of a component's content. In either case, the language codes are the same. You can either define the language code directly on the Use Value panel or use the Use Binding panel to bind the property to a bean property and enable your application to set the language code dynamically.
This dialog box enables you to choose a language code from a list. If you do not see the language code that you need on the list, you can go back to the Properties window and click the edit field next to the property, and then type in a value.
For example, the following ISO standard language codes are not available in the property editor and would have to be entered directly:
en-US
- United States Englishja-JP
- Japanesezh-guoyu
- Mandarin or Standard Chinese zh-Hans
- Simplified Chinese scriptzh-HanT
- Traditional Chinese scriptThis dialog box enables you to bind the component property to a JavaBeans property. For example, you might want to bind the component property to a property of SessionBean1 to retrieve a language code from a bean in which you maintain the language codes for your application. In the Use Binding tab, you can see a tree view of all managed beans and their properties. You bind to a property by selecting the property and clicking OK.