Thanks. I sure can see the difference.
can we use a DynaValidatorForm as an attribute in another DynaValidatorForm?
Thanks.
From: Rick Reumann <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: Struts Users Mailing List <user@struts.apache.org>
Subject: Re: DynaValidatorForm and nested tags.
Date: Mon, 19 Dec 2005 14:47:35 -0500
On 12/19/05, fea jabi <[EMAIL PROTECTED]> wrote:
>
>
>
> Also, when exactly do we have to use the nested tags?
You don't have to use them, but they make things easier/cleaner when you
need to display fields that are updatable that are nested. For example here
are two ways.. one with JSTL and one with nested (I think you'd agree the
second syntax is easier to read).
<c:forEach items="${yourForm.listOf_A_Beans}" var="beanA"
varStatus="beanAlistStatus">
<html:text
property="listOf_A_Beans[${beanAlistStatus.index}].someProperty"
value="${beanA.someProperty}" /><br>
<c:forEach items="${beanA.listOf_B_Beans}" var="beanB"
varStatus="beanBlistStatus">
<html:text property="listOf_A_Beans[${beanAlistStatus.index
}].listOf_B_Beans[${beanBlistStatus.index}].name" value="${
beanB.someProperty}" /><br>
</c:forEach>
</c:forEach>
<nested:iterate property="listOf_A_Beans">
<nested:text property="someProperty" /><br>
<nested:iterate property="listOf_B_Beans">
<nested:text property="someProperty" /><br>
</nested:iterate>
</nested:iterate>
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]