struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Gagnon <dgag...@siunik.com>
Subject Is Struts supports indexed property like itemForSale[1].lineDetail[4].selected ... I searched but haven't found how?
Date Wed, 16 Nov 2005 13:07:24 GMT
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message