org.jboss.seam.international.examples.timeanddate.locale
Class LocaleConverter

java.lang.Object
  extended by org.jboss.seam.international.examples.timeanddate.locale.LocaleConverter
All Implemented Interfaces:
javax.faces.convert.Converter

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

Faces Converter for java.util.Locale

Author:
Marek Schmidt

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

Constructor Detail

LocaleConverter

public LocaleConverter()
Method Detail

getAsObject

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

getAsString

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


Copyright © 2011 Seam Framework. All Rights Reserved.