I'm interested in getting attributes from the requested page(body) into the navigation tile. This attribute will not be available in the request but in the requested page instead. I'm using XML type definitions and a TilesController to dynamically select the body, so web programmers can add new site pages by writing the body and setting the navigation attribute.
Is there a tag that will allow web programmers to specify a navigation attribute in the body that can be pulled into the navigation tile? Thanks Allen -----Original Message----- From: Peter Maas [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 2:40 PM To: Jim Barrows Cc: Struts Users Mailing List Subject: Re: array of nested objects -- adding a new object Small miscommuncation here ;) I have only one form with nested bean elements, which inherit from actionform. I think this is perfectly legal :-) In psuedo code the form is like this: <html:form action="/nestBeanArray"> <html:text property="title"/> <html:text property="subTitle"/> <nested:iterate id="item" indexId="ind" property="childForms"> Child[<c:out value="${ind}"/>] bean Title: <nested:text property="title"/> Child[<c:out value="${ind}"/>] bean subTitle: <nested:text property="subTitle"/> </nested:iterate> </html:form> Where the ActionForm beans are like this: parentFormBean{ String title String subTitle List childFormBeans } childFormBean{ String title String subtitle } The accessor methods to set childForms use the setIndexedProperty pattern. If I populate the List in the parentFormBean everything works, even dynamically adding additional childFormBeans (as long as the list index is not out of bounds) When I do the above without nested objects, i.e. with primitives, the getter and setter of the parentFormBean are used to modify entries in the list.. in which case I can dynamically create new objects. The nested tags seem to access objects in the list directly... so where to instantiate new ones? regards, Peter On Thu, 2005-01-20 at 09:42 -0700, Jim Barrows wrote: > On Thu, 20 Jan 2005 17:30:29 +0100, Peter Maas <[EMAIL PROTECTED]> wrote: > > In one form... using nested tags. Isn't that the way to do it? > > Either we're miscommunicating, or no it isn't. You should only have > one action form per <html:form tag. > You can have an array form elements inside one action form. That's okay. > > > > > On Thu, 2005-01-20 at 09:24 -0700, Jim Barrows wrote: > > > On Thu, 20 Jan 2005 16:58:37 +0100, Peter Maas <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > > > I am trying to use the nested iterator have a list of ActionForms > > > > nested in the parent form. > > > > > > Ummmm... as in more then one action form inside a form? Or multiple > > > forms on one page? > > > I would tend to think you have a design issue here. > > > > > > > > > > > I managed to get it to work when I create the nested object manually in > > > > the constructor of the parent form, if I do this I can succesfully edit > > > > the bean properties using nested tags. > > > > > > > > If however I want to add new nested form on the fly, using javascript to > > > > generate a new form I am not able to create a new object to nest. (I > > > > managed to do this using primitives). > > > > > > > > The setter for the index property is not even called, I just get a > > > > nullpointer exception... > > > > > > > > where to look, and what to do? > > > > > > At the generated javascript and see what's different between what you > > > generate with the javascript and what you know works. > > > > > > > > > > > kind regards, > > > > > > > > Peter > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > -- > > Peter Maas > > Application Architect / Streaming > > > > Noterik Multimedia BV > > Prins Hendrikkade 120 > > 1011 AM Amsterdam > > The Netherlands > > > > Tel: +31 (0)205929966 > > Fax: +31 (0)204688405 > > Gsm: +31 (0)624687952 > > > > Web: www.noterik.nl > > -------------------------------------- > > Take a look at our streaming solutions: > > http://www.streamedit.com/demo.html > > > > Get firefox: > > http://www.mozilla.org/products/firefox/ > > --------------------------------------- > > :wq! > > > > > > -- Peter Maas Application Architect / Streaming Noterik Multimedia BV Prins Hendrikkade 120 1011 AM Amsterdam The Netherlands Tel: +31 (0)205929966 Fax: +31 (0)204688405 Gsm: +31 (0)624687952 Web: www.noterik.nl -------------------------------------- Take a look at our streaming solutions: http://www.streamedit.com/demo.html Get firefox: http://www.mozilla.org/products/firefox/ --------------------------------------- :wq! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]