Any questions you have about the EL should be documented on the Wiki (down at the moment) or at OGNL's homepage (http://www.ognl.org).
-Pat ----- Original Message ----- From: "Grzegorz Mucha" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 30, 2003 10:37 PM Subject: [OS-webwork] Master-Detail form > 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 ------------------------------------------------------- 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
