struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul Akolkar <rahul.akol...@gmail.com>
Subject Re: Is Struts supports indexed property like itemForSale[1].lineDetail[4].selected ... I searched but haven't found how?
Date Wed, 16 Nov 2005 15:42:19 GMT
On 11/16/05, David Gagnon <dgagnon@siunik.com> wrote:
> Hi all,
>
>  Sorry for this question that I tought trivial . but I haven't found my
> answer in the list . .so I ask you.
>
>  <logic:iterate name="purchaseConsolidationItemForSaleForm"
> property="itemForSale" id="itemForSale" indexId="ctr" >
>                       <logic:iterate name="itemForSale"
> property="lineDetail" id="lineDetail" indexId="ctr2">
>                                    <html:checkbox name="lineDetail"
> property="selected" indexed="true"  />
>                       </logic:iterate>
>  </logic:iterate>
>
>
> The code over gives:
>
> <input id="lineDetail[0].selected" name="lineDetail[0].selected" value="on" class="contentBaseInlinedText"
type="checkbox">
>
>
> But I would like
>
> <input id="itemForSale[1].lineDetail[0].selected" name="lineDetail[0].selected" value="on"
class="contentBaseInlinedText" type="checkbox">
>
<snip/>

Try the nested tags [1].

-Rahul

[1] http://struts.apache.org/struts-taglib/tagreference-struts-nested.html


>
> I guess struts don't support that... If yes is there a way I would be
> able to validate it?
>
> Thanks for your help!!!
>
> /David
>

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


Mime
View raw message