org.apache.myfaces.trinidaddemo.email
Class EmailDisplayConverter

java.lang.Object
  extended by org.apache.myfaces.trinidaddemo.email.EmailDisplayConverter
All Implemented Interfaces:
javax.faces.convert.Converter

public class EmailDisplayConverter
extends Object
implements javax.faces.convert.Converter

Converter that displays just the name, or the full e-mail address if the name is not available.


Constructor Summary
EmailDisplayConverter()
           
 
Method Summary
 Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value)
           
 String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailDisplayConverter

public EmailDisplayConverter()
Method Detail

getAsString

public String getAsString(javax.faces.context.FacesContext context,
                          javax.faces.component.UIComponent component,
                          Object value)
Specified by:
getAsString in interface javax.faces.convert.Converter

getAsObject

public Object getAsObject(javax.faces.context.FacesContext context,
                          javax.faces.component.UIComponent component,
                          String value)
Specified by:
getAsObject in interface javax.faces.convert.Converter


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.