struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hubert Rabago <hrab...@gmail.com>
Subject Re: java.util.Date in Action Form Bean
Date Wed, 02 Nov 2005 20:39:06 GMT
FormDef works fine with Validator.  For the most part they won't even
be aware of each other.  There's no overlap in functionality and they
won't get in the way of one another.

Hubert

On 11/2/05, Yujun Liang <yujun.liang@acm.org> wrote:
> Hubert, your input is quite valuable. But I just wonder this suppose to be
> handled by Struts itsself,
>
> You may also place a bean instance on your form, and use nested property
> references. For example, you might have a "customer" bean on your
> ActionForm, and then refer to the property
> "customer.name<http://customer.name>"
> in your presentation page. This would correspond to the methods
> customer.getName() and customer.setName(String Name) on your customer bean.
> See the Apache Struts Taglib Developer Guides for more about using the
> nested syntax.
> http://struts.apache.org/struts-core/userGuide/building_controller.html#action_form_classes
>
> Do you know whether this BeanDef works with Validator?
>
> Thanks.
>
> On 11/3/05, Hubert Rabago <hrabago@gmail.com> wrote:
> >
> > [ Oh, I missed my cue! :) ]
> >
> > If your form bean maps to a business object (and it sounds like it
> > does since you're using BeanUtils), you can try FormDef:
> > http://formdef.dev.java.net/
> >
> > You won't need to create a separate ActionForm class or manually
> > define your DynaActionForm, FormDef will configure it for you. You
> > can also specify how you want your fields formatted, including dates
> > and numbers, and use FormDef's conversion methods in place of
> > BeanUtils.
> >
> > Hubert

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message