I believe I may have found a bug. When inserting into a repeated
section with a group, everything works except the group isn't copied. The attached test case, which can be run from the sandbox, illustrates it more clearly than I can describe. Basically the visual bounding box created by the xforms:group isn't repeated. I tried several variations on the attached case, but I couldn't figure this out. Tips and advice is welcome. Duane Gran <html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:ev="http:// www.w3.org/2001/xml-events" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Group Repeat Test</title> <xforms:model> <xforms:instance> <items xmlns=""> <item>one</item> </items> </xforms:instance> </xforms:model> </head> <body> <div> <xforms:repeat nodeset="/items/item" id="div-repeat-item"> <xforms:group> <xforms:label>my grouping label</xforms:label> <p>item: <xforms:output value="."/> </p> <xforms:trigger> <xforms:label>add another</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:insert nodeset="/items/item" at="last()" position="after"/> </xforms:action> </xforms:trigger> </xforms:group> </xforms:repeat> </div> </body> </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 view.xhtml (952 bytes) Download Attachment |
Duane,
This is definitly a bug, it appears that when the page is created the <fieldset> element isn't created for the repeat-template, this means that all xforms:inserts will obviously not work. I think Erik will need to take a look at this one Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Duane Gran [mailto:[hidden email]] >Sent: 13 September 2006 18:45 >To: [hidden email] >Subject: [ops-users] 3.5M1 issue: repeat group > >I believe I may have found a bug. When inserting into a >repeated section with a group, everything works except the >group isn't copied. The attached test case, which can be run >from the sandbox, illustrates it more clearly than I can >describe. Basically the visual bounding box created by the >xforms:group isn't repeated. I tried several variations on >the attached case, but I couldn't figure this out. Tips and >advice is welcome. > >Duane Gran > ><html xmlns:xforms="http://www.w3.org/2002/xforms" >xmlns:ev="http:// www.w3.org/2001/xml-events" > xmlns="http://www.w3.org/1999/xhtml"> > <head> > <title>Group Repeat Test</title> > > <xforms:model> > <xforms:instance> > <items xmlns=""> > <item>one</item> > </items> > </xforms:instance> > </xforms:model> > </head> > <body> > <div> > <xforms:repeat nodeset="/items/item" id="div-repeat-item"> > <xforms:group> > <xforms:label>my grouping label</xforms:label> > <p>item: <xforms:output value="."/> > </p> > <xforms:trigger> > <xforms:label>add another</xforms:label> > <xforms:action ev:event="DOMActivate"> > <xforms:insert nodeset="/items/item" at="last()" >position="after"/> > </xforms:action> > </xforms:trigger> > </xforms:group> > </xforms:repeat> > </div> > </body> ></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 |
Duane,
I have now encountered this problem myself, my fix is to replace the <xforms:group with a <xhtml:fieldset class="xforms-group"> and replace the <xforms:label> with a <xhtml:legend> This is what OPS produces anyway and this overcomes the problem :-) Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Ryan Puddephatt [mailto:[hidden email]] >Sent: 14 September 2006 10:29 >To: [hidden email] >Subject: RE: [ops-users] 3.5M1 issue: repeat group > >Duane, > This is definitly a bug, it appears that when the page >is created the <fieldset> element isn't created for the >repeat-template, this means that all xforms:inserts will >obviously not work. I think Erik will need to take a look at this one > >Ryan > >Ryan Puddephatt >Software Engineer > >Teleflex Group - IT UK >1 Michaelson Square >Livingston >West Lothian >Scotland >EH54 7DP > >e> [hidden email] >t> +44(0)1506 407 110 >f> +44(0)1506 407 108 > > > >>-----Original Message----- >>From: Duane Gran [mailto:[hidden email]] >>Sent: 13 September 2006 18:45 >>To: [hidden email] >>Subject: [ops-users] 3.5M1 issue: repeat group >> >>I believe I may have found a bug. When inserting into a repeated >>section with a group, everything works except the group isn't >copied. >>The attached test case, which can be run from the sandbox, >illustrates >>it more clearly than I can describe. Basically the visual >bounding box >>created by the xforms:group isn't repeated. I tried several >variations >>on the attached case, but I couldn't figure this out. Tips >and advice >>is welcome. >> >>Duane Gran >> >><html xmlns:xforms="http://www.w3.org/2002/xforms" >>xmlns:ev="http:// www.w3.org/2001/xml-events" >> xmlns="http://www.w3.org/1999/xhtml"> >> <head> >> <title>Group Repeat Test</title> >> >> <xforms:model> >> <xforms:instance> >> <items xmlns=""> >> <item>one</item> >> </items> >> </xforms:instance> >> </xforms:model> >> </head> >> <body> >> <div> >> <xforms:repeat nodeset="/items/item" id="div-repeat-item"> >> <xforms:group> >> <xforms:label>my grouping label</xforms:label> >> <p>item: <xforms:output value="."/> >> </p> >> <xforms:trigger> >> <xforms:label>add another</xforms:label> >> <xforms:action ev:event="DOMActivate"> >> <xforms:insert nodeset="/items/item" at="last()" >>position="after"/> >> </xforms:action> >> </xforms:trigger> >> </xforms:group> >> </xforms:repeat> >> </div> >> </body> >></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 |
Administrator
|
In reply to this post by Duane Gran-2
Duane,
This is indeed a bug. But we are not very happy with the way we handle xforms:group/xforms:label at the moment (i.e. we do this in theme.xsl). We were thinking about simply removing that bit of transformation in theme.xsl, and let users use xforms:fieldset/xforms:legend by hand. I have entered a bug to track this: http://forge.objectweb.org/tracker/index.php?func=detail&aid=306174&group_id=168&atid=350207 -Erik Duane Gran wrote: > I believe I may have found a bug. When inserting into a repeated > section with a group, everything works except the group isn't copied. > The attached test case, which can be run from the sandbox, illustrates > it more clearly than I can describe. Basically the visual bounding box > created by the xforms:group isn't repeated. I tried several variations > on the attached case, but I couldn't figure this out. Tips and advice > is welcome. > > Duane Gran > > <html xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns="http://www.w3.org/1999/xhtml"> > <head> > <title>Group Repeat Test</title> > > <xforms:model> > <xforms:instance> > <items xmlns=""> > <item>one</item> > </items> > </xforms:instance> > </xforms:model> > </head> > <body> > <div> > <xforms:repeat nodeset="/items/item" id="div-repeat-item"> > <xforms:group> > <xforms:label>my grouping label</xforms:label> > <p>item: <xforms:output value="."/> > </p> > <xforms:trigger> > <xforms:label>add another</xforms:label> > <xforms:action ev:event="DOMActivate"> > <xforms:insert nodeset="/items/item" at="last()" > position="after"/> > </xforms:action> > </xforms:trigger> > </xforms:group> > </xforms:repeat> > </div> > </body> > </html> Orbeon - XForms Everywhere: 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 |
Free forum by Nabble | Edit this page |