Hello,
A select1 tree control in combination with a xforms-repeat does not work. I'm using version 3.5M1, a code extract is included at the end of this post. When the "Add Material"-trigger is activated, a new "Material"-label is inserted, but the tree-control is not and an infinite loop occurs. When replacing the tree-control with a plain input control, the code works fine. Has anyone encountered this same problem? gts, Ronny An extract of the problematic xforms code: <f:group ref="materials"> <f:repeat nodeset="material[position() lt last()]" id="materials"> <h:tr> <h:th>Material</h:th> <h:td> <f:select1 appearance="xxforms:tree" ref="material"> <f:itemset nodeset="instance('objectnames-list-instance')//item"> <f:label ref="@label"/> <f:value ref="@value"/> </f:itemset> </f:select1> </h:td> </h:tr> </f:repeat> <h:tr> <h:th /> <h:td> <f:trigger> <f:label>Add material</f:label> <f:action ev:event="DOMActivate"> <f:insert nodeset="material" at="index('materials')" position="after"/> </f:action> </f:trigger> </h:td> </h:tr> </f:group> -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hi Ronny,
Yes: some of the more "fancy" controls like the tree and the menu can't be used in an <xforms:repeat> right now. I see you have already added a bug for this :). http://forge.objectweb.org/tracker/index.php?func=detail&aid=306517&group_id=168&atid=350207 Alex On 12/15/06, [hidden email] <[hidden email]> wrote: > Hello, > > A select1 tree control in combination with a xforms-repeat does not work. I'm using version 3.5M1, a code extract is included at the end of this post. > When the "Add Material"-trigger is activated, a new "Material"-label is inserted, but the tree-control is not and an infinite loop occurs. When replacing the tree-control with a plain input control, the code works fine. > > Has anyone encountered this same problem? > > gts, > Ronny > > An extract of the problematic xforms code: > <f:group ref="materials"> > <f:repeat nodeset="material[position() lt last()]" id="materials"> > <h:tr> > <h:th>Material</h:th> > <h:td> > <f:select1 appearance="xxforms:tree" ref="material"> > <f:itemset nodeset="instance('objectnames-list-instance')//item"> > <f:label ref="@label"/> > <f:value ref="@value"/> > </f:itemset> > </f:select1> > </h:td> > </h:tr> > </f:repeat> > <h:tr> > <h:th /> > <h:td> > <f:trigger> > <f:label>Add material</f:label> > <f:action ev:event="DOMActivate"> > <f:insert nodeset="material" at="index('materials')" > position="after"/> > </f:action> > </f:trigger> > </h:td> > </h:tr> > </f:group> > > > > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |