Hi all! I've a question regarding creating master-detail forms. Suppose I have User object, that can have many Address objects. Is there a way to create a form that can be used to edit the user, as well as his addresses (and even add new ones?)
I have thought of iterating through the user's addresses, and creating a sub-form for each one: <ww:iterate value="addresses"> <ww:hidden name="id" value="id"/> <ww:textfield label="desc" name="description" value="description"/> <ww:textfield label="val" name="value" value="value"/> </ww:iterate> As I have observed, WW/XW allows me to use dot notation (address.description, works really neat ;-) ) for field name/value, but how about indexed (addresses[2].description) dot notation? And how to create correctly sized array/collection of the Address objects in action before populating them with setters? I Can you give me any suggestions, both for the JSP and the Action itself? Grzegorz ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork