This content has been marked as final.
Show 2 replies
-
1. Re: How bind object with multiple fields?
justinmbirch Nov 3, 2008 9:16 AM (in response to nunya)I had to do something similar with a Converter to get a listShuttle to work.
i.e./** * @see javax.faces.convert.Converter#getAsObject(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.String) */ public Object getAsObject( FacesContext context, UIComponent component, String value ) throws ConverterException { String[] vals = value.split( ":" ); return new LabEquipmentId( vals[0], vals[1] ); } /** * @see javax.faces.convert.Converter#getAsString(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object) */ public String getAsString( FacesContext context, UIComponent component, Object value ) throws ConverterException { LabEquipmentId id = (LabEquipmentId)value; return id.getId() + ":" + id.getVendor(); }
Hope that helps -
2. Re: How bind object with multiple fields?
nbelaevski Nov 3, 2008 5:28 PM (in response to nunya)Hello,
Maybe that will help also: http://www.jboss.org/community/docs/DOC-12018?