Thanks for the info!

I'll have a look !

Best regards
/David

Niall Pemberton wrote:

As Rahul points out the "nested" taglib should do what you want. Validator
doesn't support two levels like this - one option would be to use the
"extends" validator I wrote:

http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html#twolevels

Niall

----- Original Message ----- From: "David Gagnon" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <user@struts.apache.org>
Sent: Wednesday, November 16, 2005 1:07 PM
Subject: Is Struts supports indexed property like
itemForSale[1].lineDetail[4].selected ... I searched but haven't found how?


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">
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: [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