public class UILanguageSelector extends UISelectOne
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
INVALID_MESSAGE_ID
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID
Constructor and Description |
---|
UILanguageSelector() |
Modifier and Type | Method and Description |
---|---|
protected SelectItem[] |
createList()
Creates the list of SelectItem components to represent the list
of Langages the user can select from
|
void |
encodeBegin(FacesContext context) |
boolean |
isOnlyAvailableLanguages() |
boolean |
isReturnCurrentLanguage() |
void |
setOnlyAvailableLanguages(boolean onlyAvailableLanguages) |
void |
setReturnCurrentLanguage(boolean returnCurrentLanguage)
Without effect if onlyAvailableLanguages is false
|
getFamily, validateValue
addValidator, addValueChangeListener, broadcast, compareValues, decode, getConvertedValue, getSubmittedValue, getValidator, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, restoreState, saveState, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, updateModel, validate
getConverter, getLocalValue, setConverter
addFacesListener, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConverter, getLocalValue, setConverter
public static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public void encodeBegin(FacesContext context) throws IOException
encodeBegin
in class UIComponentBase
IOException
protected SelectItem[] createList()
public boolean isOnlyAvailableLanguages()
public void setOnlyAvailableLanguages(boolean onlyAvailableLanguages)
onlyAvailableLanguages
- the list of languages is filteredpublic boolean isReturnCurrentLanguage()
public void setReturnCurrentLanguage(boolean returnCurrentLanguage)
returnCurrentLanguage
- the list must contain the language of the current nodeCopyright © 2005–2017 Alfresco Software. All rights reserved.