Joe Hertz wrote:

[snip]
Wouldn't it be more useful to have the form object do the type conversion? Have a way to tell it the "JSP type" (99% String) and the "application type". Make the form objects smart enough to give you a properly typed result, much in the same way Hibernate's Session.load(Object obj, Object id) populates the right values into obj.


What you're basically asking for is user interface components, instead of simple input fields. Fortunately, you can have that today with things like JavaServer Faces. The user interface components there have the ability to automatically register the correct converter when you use a value binding expression to point the component at your model data - if it's an "int" property, the IntegerConverter will get used for you.

Craig



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to