I am trying to pass a value to a conversion class in JSF/SEAM
public class ValueConverter implements Converter {
public Object getAsObject(FacesContext arg0, UIComponent arg1, String value) {
if (StringUtils.isNotBlank(value)) {
// logic etc here.
My xhtml is:
<f:converter converterId="ValueConverter">
<f:attribute name="theMaxOrderSize" id="maxorder" value="#{_cartItem.item.maxOrderSize}"/>
</f:converter>
How do I pass a parameter value to a Conversion class in java? Am I starting off wrong? I am using JSF 1.2 I think..