public class UserDisplayConverter extends Object implements javax.faces.convert.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(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String value)
Returns given value (does not do any reverse conversion)
|
String |
getAsString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
Tries to build the user display name according to information passed as attribute to the component holding the
converter.
|
public UserDisplayConverter()
public Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value)
getAsObject
in interface javax.faces.convert.Converter
public String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
Handled attributes are:
getAsString
in interface javax.faces.convert.Converter
Copyright © 2016 Nuxeo SA. All rights reserved.