You wouldn't be able to in one <form-bean> declaration, but you could
do several then combine them in your Action.

<form-bean name="childForm" type="...DynaValidatorForm">
    <form-property name="value" type="java.lang.String"/>
</form-bean>

<form-bean name="parentForm" type="...DynaValidatorForm">
    <form-property name="child" type="...DynaValidatorForm"/>
</form-bean>


In your pre-population action:

DynaValidatorForm childForm =
childFormBeanConfig.createActionForm(getServlet());
parentForm.set("child", childForm);

// use session scope so the child form is available upon form submission
session.setAttribute("parentForm", parentForm);


In your jsp:

<html:text property="child.value"/>


Hubert


On 9/27/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> raghu wrote:
> > How do we build dynavalidator forms that have as one of their fields another
> > dynavalidator form?
>
> My first thought was
>
>    <form-bean name="xxx" type="...DynaValidatorForm">
>      <form-property name="nested" type="...DynaValidatorForm"/>
>
> but of course you can't configure the nested dyna form that way. Maybe
> lazy dyna forms would work here?
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to