You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by VLADIMIR TERZIC <VT...@intgas.com> on 2003/10/16 23:35:11 UTC

DynaValidatorForm accepted form-property types

I am even having a tough time formulating my question so please bear with me ;-)

i have a phone bean (fields areaCode, prefix, suffix) that is part of a bean customer (homePhone, workPhone). 
i need to map this bean to a DynaForm that would have something like this:
<form-property name="homePhone" type="PhoneBean" />
<form-property name="workPhone" type="PhoneBean" />

i would like BeanUtils.populate to populate DynaForm from my customer bean but i am getting conversion exceptions.
I can make it work with BeanUtils.copyproperties but then when i submit my form i get same conversion exceptions since struts action uses BeanUtils.populate and cant seem to find my PhoneBean.

is this possible to make work with DynaForms and if so what do i need to do to fix my bean(s)?

i hope this makes sense and i hope someone can help me ;-)

thanks
vlad


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