public class UserDisplayConverter extends Object implements Converter
Sample usage:
lt;h:outputText
converter="#{userSuggestionActions.userConverter}">
<f:attribute name="prefixed" value="false" />
<f:attribute name="userDirectory" value="#{userManager.userDirectoryName}" />
<f:attribute name="userSchema" value="#{userManager.userSchemaName}" />
<f:attribute name="firstNameField" value="firstName" />
<f:attribute name="lastNameField" value="lastName" />
lt;/h:outputText>
Constructor and Description |
---|
UserDisplayConverter() |
Modifier and Type | Method and Description |
---|---|
Object |
getAsObject(FacesContext context,
UIComponent component,
String value)
Returns given value (does not do any reverse conversion)
|
String |
getAsString(FacesContext context,
UIComponent component,
Object value)
Tries to build the user display name according to information passed as
attribute to the component holding the converter.
|
public Object getAsObject(FacesContext context, UIComponent component, String value)
getAsObject
in interface Converter
public String getAsString(FacesContext context, UIComponent component, Object value)
Handled attributes are:
getAsString
in interface Converter
Copyright © 2013 Nuxeo SA. All Rights Reserved.