Details
Description
Myfaces are too strict and always assume submitted value as String. Comparing with Mojarra and Trinidad:
1)org.apache.myfaces.shared.renderkit.RendererUtils.getStringValue(FacesContext, UIComponent):
myfaces: IllegalArgumentException ("Submitted value of type String expected")
mojarra, trinidad: call EditableValueHolder.getSubmittedValue().toString() in this situation
2) org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedUIOutputValue(FacesContext, UIOutput, Object)
myfaces: IllegalArgumentException("Submitted value of type String expected")
mojarra: CastClassExpection if sumbittedValue is not String
trinidad: class submittedValue.toString in this situation
toString() solution will handle all situations and will allow submitted values other type than String