In my action class I have:

public MyAction extends ActionSupport {
  private List itemsList = new OgnlList(Item.class); // with getter and setter
 
}


I also have a domain object class Item:
class Item {
  private String myProp1;
  private String myProp2;
  private String myProp3;

  //... getters and setters
}


I'd like to do the following:
<form>
  <table>
    <ww:iterator status="rowStat"  value="itemsList" >
      <tr>
        <ww:textfield name="'itemsList[rowStat.index].myProp1'" 
                      value="myProp1" 
                      template="/template/sgx/plaintextfield.vm"/>
        <ww:textfield name="'itemsList[rowStat.index].myProp2'" 
                      value="myProp2"
                      template="/template/sgx/plaintextfield.vm"/>
        <ww:textfield name="'itemsList[rowStat.index].myProp3'" 
                      value="myProp3"
                      template="/template/sgx/plaintextfield.vm"/>
      </tr>
    </ww:iterator>
  </table>
</form>

The problems is I can't get the name attribute to be dynamically set with the index 
from the iterator.  I've tried several different ways and can't figure out the ognl 
syntax to do it.

Thanks,
Paul


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to