In the example, clicking add item will add a new row: the newly created textareas don't get any labels.
<?xml version="1.0" encoding="UTF-8"?> <xhtml:html xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:exf="http://www.exforms.org/exf/1-0" xmlns:layout="http://orionhealth.com/soprano/forms/layout" xmlns:orion="http://orionhealth.com/soprano/forms/form" xmlns:ui="http://orionhealth.com/soprano/forms/form/ui" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> <xhtml:head> <xf:model id="main-model" xmlns:xforms="http://www.w3.org/2002/xforms"> <xf:instance id="document" xmlns=""> <document> <item> <name>Item #1</name> <value>A</value> </item> <item> <name>Item #2</name> <value>B</value> </item> <item> <name>Item #3</name> <value>C</value> </item> <item> <name>Item #4</name> <value>D</value> </item> <item> <name>Item #5</name> <value>E</value> </item> </document> </xf:instance> <xf:instance id="template-item" xmlns=""> <item> <name/> <value/> </item> </xf:instance> <xf:bind id="bind-item" nodeset="instance('document')/item"/> <xf:bind id="bind-item-name" nodeset="instance('document')/item/name"/> <xf:bind id="bind-item-value" nodeset="instance('document')/item/value"/> </xf:model> </xhtml:head> <xhtml:body id="body_debug"> <xhtml:table> <xf:repeat id="repeat-item" nodeset="instance('document')/item"> <xhtml:tr> <xhtml:td> <xf:group> <xf:label>Name</xf:label> </xf:group> </xhtml:td> <xhtml:td> <xf:textarea ref="name"/> </xhtml:td> </xhtml:tr> <xhtml:tr> <xhtml:td> <xf:group> <xf:label>Value</xf:label> </xf:group> </xhtml:td> <xhtml:td> <xf:textarea ref="value"/> </xhtml:td> </xhtml:tr> </xf:repeat> <xhtml:tr> <xhtml:td> </xhtml:td> <xhtml:td> <xf:trigger id="trigger-add-item"> <xf:label>Add Item</xf:label> <xf:action ev:event="DOMActivate"> <xf:insert nodeset="instance('document')/item" origin="instance('template-item')"/> </xf:action> </xf:trigger> </xhtml:td> </xhtml:tr> </xhtml:table> </xhtml:body> </xhtml:html> -- 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 |
Is there a reason you are using an xforms:group to display the label? Why don't you type the text straight into the cell? Ryan
Ryan Puddephatt Adrian Baker wrote: In the example, clicking add item will add a new row: the newly created textareas don't get any labels. -- 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 |
So the label shows/hides together
with the control.
Ryan Puddephatt wrote:
-- 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
|
In reply to this post by Adrian Baker
Adrian,
We have reproduced the issue and added a bug for this: http://forge.objectweb.org/tracker/index.php?func=detail&aid=306829&group_id=168&atid=350207 Alex On 3/15/07, Adrian Baker <[hidden email]> wrote: > In the example, clicking add item will add a new row: the newly created textareas don't get any labels. > > > > -- > 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 > > > -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ -- 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
|
Adrian,
On 3/22/07, Alessandro Vernet <[hidden email]> wrote: > We have reproduced the issue and added a bug for this: > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=306829&group_id=168&atid=350207 > Erik fixed this one. Your example now runs fine. Alex -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ -- 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 |
Free forum by Nabble | Edit this page |