Package org.ocpsoft.rewrite.faces.config
Class FacesConverter<T>
java.lang.Object
org.ocpsoft.rewrite.faces.config.FacesConverter<T>
- All Implemented Interfaces:
org.ocpsoft.rewrite.param.Converter<T>,org.ocpsoft.rewrite.param.ParameterConfigurator
Adapter class that allows to use JSF converters with
Rewrite framework Converter instances.- Author:
- Christian Kaltepoth
-
Method Summary
Modifier and TypeMethodDescriptionconvert(org.ocpsoft.rewrite.event.Rewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, Object value) static <T> FacesConverter<T>Create aConverterwith the given ID.static <T> FacesConverter<T>Create aConverteradapter for the given target type.toString()
-
Method Details
-
forType
Create aConverteradapter for the given target type. The converter will useApplication.createConverter(Class)to obtain the underlying JSF converter. -
forId
Create aConverterwith the given ID. The converter will use {@link Application#createConverter(String))} to obtain the underlying JSF converter. -
convert
public T convert(org.ocpsoft.rewrite.event.Rewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, Object value) - Specified by:
convertin interfaceorg.ocpsoft.rewrite.param.Converter<T>
-
toString
-