Package org.openxava.formatters
Class MultipleValuesByPassFormatter
java.lang.Object
org.openxava.formatters.MultipleValuesByPassFormatter
- All Implemented Interfaces:
IMultipleValuesFormatter
Simply by pass the values from property to html and viceversa.
It's useful if you have a property of type String [] and you editor
may work with its values directly.
- Author:
- Javier Paniza
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]From a object return aString []to render in HTML.From aString []obtained from a HTTP request return a java object.
-
Constructor Details
-
MultipleValuesByPassFormatter
public MultipleValuesByPassFormatter()
-
-
Method Details
-
format
public String[] format(javax.servlet.http.HttpServletRequest request, Object object) throws Exception Description copied from interface:IMultipleValuesFormatterFrom a object return aString []to render in HTML.- Specified by:
formatin interfaceIMultipleValuesFormatter- Throws:
Exception
-
parse
public Object parse(javax.servlet.http.HttpServletRequest request, String[] strings) throws Exception Description copied from interface:IMultipleValuesFormatterFrom aString []obtained from a HTTP request return a java object.- Specified by:
parsein interfaceIMultipleValuesFormatter- Throws:
Exception
-