Hi,
Can anybody more experienced please help me by giving me an example how to add in the repeating mechanism of the Bookcast example another field (textarea) "Note author" in the right side of the "Note" textarea? Regards, Adrian -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Adrian,
If I understand correctly, the way would be to make two insert repeat actions one ACTIVATED by the first or second, test it. -- einar On Fri, Jul 11, 2008 at 11:09 PM, Adrian Butnaru <[hidden email]> wrote: Hi, -- -- Einar Moos -- parisiana.com Tel: 0676660080 -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Thanks Einar,
But I am not able to make a repeat action to activate the second one. Is there any documentation (reference) for FormBuilder so I can check how to solve this? Regards, Adrian Einar Moos schreef: > Adrian, > > If I understand correctly, the way would be to make two insert repeat > actions one ACTIVATED by the first or second, test it. > > -- einar > > > > On Fri, Jul 11, 2008 at 11:09 PM, Adrian Butnaru <[hidden email] > <mailto:[hidden email]>> wrote: > > Hi, > Can anybody more experienced please help me by giving me an > example how to add in the repeating mechanism of the Bookcast > example another field (textarea) "Note author" in the right side > of the "Note" textarea? > > Regards, > Adrian > > > -- > You receive this message as a subscriber of the [hidden email] > <mailto:[hidden email]> mailing list. > To unsubscribe: mailto:[hidden email] > <mailto:[hidden email]> > For general help: mailto:[hidden email] > <mailto:[hidden email]>?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > > > > -- > -- Einar Moos > -- parisiana.com <http://parisiana.com> > > Tel: 0676660080 > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by abutnaru
Adrian,
> Can anybody more experienced please help me by giving me an example how > to add in the repeating mechanism of the Bookcast example another field > (textarea) "Note author" in the right side of the "Note" textarea? i found some time now to install a nightly build and played around with the fb bookcast source; i've attached a modified version of the form.xhtml with those modifications you're asking for. Please use your favourite diff tool to see the changes i've applied. To describe it shortly: The FormBuilder forms contain an inline schema, so before modifying the instance structure, one has to modify the schema. I've created a new "notebag" element that acts as a container for the former note element and the new anote element. This way, the xml structure mirrors the desired forms control structure. This modification had to be done in the resources instances and (especially important) in the instance('node-template'), too. After that, the model should be ready. To modify the controls, the repeat('book-repeat') has to reference the notebag, because every table row will display the "content of one notebag". The first textarea needs to reference not the actual node, but the "note" child of the current notebag. Now, one just had to clone the html:td containing the first textarea, change the reference to the anote child and let the help, hint, label and alert reference the corresponding resource-instance elements. HTH florian -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws form.xhtml (30K) Download Attachment |
Florian,
I am able now to repeat it. I will try to apply this in my form application. Thanks a lot and have a nice weekend. Regards, Adrian Florian Schmitt schreef: > Adrian, > >> Can anybody more experienced please help me by giving me an example >> how to add in the repeating mechanism of the Bookcast example another >> field (textarea) "Note author" in the right side of the "Note" textarea? > > i found some time now to install a nightly build and played around > with the fb bookcast source; i've attached a modified version of the > form.xhtml with those modifications you're asking for. Please use your > favourite diff tool to see the changes i've applied. To describe it > shortly: > > The FormBuilder forms contain an inline schema, so before modifying > the instance structure, one has to modify the schema. I've created a > new "notebag" element that acts as a container for the former note > element and the new anote element. This way, the xml structure mirrors > the desired forms control structure. > > This modification had to be done in the resources instances and > (especially important) in the instance('node-template'), too. After > that, the model should be ready. > > To modify the controls, the repeat('book-repeat') has to reference the > notebag, because every table row will display the "content of one > notebag". The first textarea needs to reference not the actual node, > but the "note" child of the current notebag. Now, one just had to > clone the html:td containing the first textarea, change the reference > to the anote child and let the help, hint, label and alert reference > the corresponding resource-instance elements. > > HTH > florian -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |