>As a rule, FormBeans should only work with Strings.  For example, suppose
>the date field on your FormBean is supposed to be populated from a user's
>form submission.  What if the user types in a bad value, and you want to
>return to the submission page to flag the error with the problematic field
>highlighted?  For that you need to capture the value initially as a String,
>because otherwise automatic type conversion will lose the user's original
>(bad) value.  See the archives of this list for details.

for that, i use the javascript validation, so this case never happens.

And the formBeans containing Integer and Date objects are perfect as
parameters for business-methods.

for example:

form_bean_xxx contains
  teacher : fb_teacher


fb_teacher contains
  name
  birthdate : DateWrapper

you can give form_bean.teacher to a session bean method.
so you need not much parameters and no separate simpletypes

greetings,

Andreas


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

Reply via email to