Thursday, June 12, 2008

Nested Iterate tag

If you have a Collection in ActionForm and require to access them, we can use nested:iterate

<nested:iterate name="memberCustomerViewForm" property="addressList" >
<div>
<span class="leftBuffer"> </span>
<span class="generalInput">
<nested:text property="addressType" onblur="toUpper(this);" size="11" />
<nested:hidden property="addressId"/>
</span>
</nested:iterate>


Note
- do not use id=current in nested:iterate
- don't access like <nested:text name="current" property="addressType" />

No comments: