crm:switchLanguage

Overview

The <crm:switchLanguage> tag is used to display a language component on the page with translatable fields.

   

Attributes

NameRequiredTypeDefaultDescription
dataObjecttrueObjectnullThe data object of the component.
idfalseStringnullUnique identifier of the component.
labelKeyfalseStringkey_switch_language

A valid key defined in translation properties file. Its translation through the glossary will be used as the presentable name of the component.

managedBeantrueStringnull

The name of the Java managed bean class that will be used for retrieving the component values.

onChangeFunctionfalseStringsetTranslations

Defines the function call triggered when input element loses focus and its value has been modified since gaining focus.

parametersfalseStringnullDefines the parameter of the function call.
processfalseString@this and the value of the refresh attributeComponent(s) to process in partial request.
refreshfalseString @formComponent(s) to update with ajax.
styleClassfalseStringpull-rightStyle class of the component.
tipfalseStringkey_tooltip_contact_information_preferred_language

A valid key defined in translation properties file. Its translation through the glossary will be used as an advisory tooltip information.


Getting Started

The following example shows an attachment component both in view as well as edit mode.