Hello.
I have problem with simple repeat thing. If if load my form it looks fine. But after add action it became weird. 1.: it renames second group from "No name" to "Second-one" 2.: added input doesnt't have it's own group like the first one (and it is out of group where it supposed to be) Data posted by this form are OK even it looks different. With XSmiles it works fine. (rendring and sending data) Code: <?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:a="a" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <head> <title /> <xforms:model id="Model"> <xforms:instance> <first xmlns="a"> <second-one /> </first> </xforms:instance> <xforms:bind nodeset="/a:first/a:second-one" type="xsd:language" /> <xforms:submission action="http://xformstest.org/cgi-bin/echo.sh" id="id" method="put" /> </xforms:model> </head> <body> <xforms:group> <xforms:label>first</xforms:label> <xforms:group> <xforms:label>No name</xforms:label> <xforms:repeat id="second-oneID" model="Model" nodeset="/a:first/a:second-one"> <xforms:group> <xforms:label>second-one</xforms:label> <xforms:input ref="."> <xforms:label>language</xforms:label> </xforms:input> </xforms:group> </xforms:repeat> </xforms:group> </xforms:group> <br /> <xforms:trigger id="second-oneIDadd"> <xforms:label>Add</xforms:label> <xforms:insert at="index('second-oneID')" ev:event="DOMActivate" nodeset="/a:first/a:second-one" position="after" /> </xforms:trigger> <xforms:trigger id="second-oneIDdel"> <xforms:label>Delete</xforms:label> <xforms:delete at="index('second-oneID')" ev:event="DOMActivate" nodeset="/a:first/a:second-one" /> </xforms:trigger> <br /> <xforms:submit submission="id"> <xforms:label>Send</xforms:label> </xforms:submit> </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 |
I believe the xforms:group element expects to have a ref attribute.
Otherwise I don't believe it has any effect. Does it work if you remove the groups? Duane On Sep 12, 2006, at 12:13 PM, [hidden email] wrote: > Hello. > I have problem with simple repeat thing. > If if load my form it looks fine. But after add action it became > weird. > 1.: it renames second group from "No name" to "Second-one" > 2.: added input doesnt't have it's own group like the first one > (and it is out of group where it supposed to be) > > Data posted by this form are OK even it looks different. > > With XSmiles it works fine. (rendring and sending data) > > Code: > > <?xml version="1.0" encoding="UTF-8"?> > <html xmlns="http://www.w3.org/1999/xhtml" xmlns:a="a" > xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xforms="http:// > www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <head> > <title /> > <xforms:model id="Model"> > <xforms:instance> > <first xmlns="a"> > <second-one /> > </first> > </xforms:instance> > <xforms:bind nodeset="/a:first/a:second-one" > type="xsd:language" /> > <xforms:submission action="http://xformstest.org/cgi-bin/ > echo.sh" id="id" method="put" /> > </xforms:model> > </head> > <body> > <xforms:group> > <xforms:label>first</xforms:label> > <xforms:group> > <xforms:label>No name</xforms:label> > <xforms:repeat id="second-oneID" model="Model" nodeset="/ > a:first/a:second-one"> > <xforms:group> > <xforms:label>second-one</xforms:label> > <xforms:input ref="."> > <xforms:label>language</xforms:label> > </xforms:input> > </xforms:group> > </xforms:repeat> > </xforms:group> > </xforms:group> > <br /> > <xforms:trigger id="second-oneIDadd"> > <xforms:label>Add</xforms:label> > <xforms:insert at="index('second-oneID')" > ev:event="DOMActivate" nodeset="/a:first/a:second-one" > position="after" /> > </xforms:trigger> > <xforms:trigger id="second-oneIDdel"> > <xforms:label>Delete</xforms:label> > <xforms:delete at="index('second-oneID')" > ev:event="DOMActivate" nodeset="/a:first/a:second-one" /> > </xforms:trigger> > <br /> > <xforms:submit submission="id"> > <xforms:label>Send</xforms:label> > </xforms:submit> > </body> > </html> > > > -- > You receive this message as a subscriber of the ops- > [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 -- 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 |
In reply to this post by pokusak
I thought xforms:group can be used to group some XForms controls without any other effect. (or to set up binding context if attribute ref is used)
But: According to W3C XForms recommendation at http://www.w3.org/TR/2006/REC-xforms-20060314/slice9.html#id148277 is Single node binding optional. Plus in W3C examples at http://www.w3.org/TR/2006/REC-xforms-20060314/sliceG.html is xforms:group without ref. Besides I have to say that without groups it works right. >-----Puvodni zprava----- >Od: Duane Gran [mailto:[hidden email]] >Odesl?no: 12. z??? 2006 17:23 >Komu: [hidden email] >P?edm?t: Re: [ops-users] Renaming group in repeat > > >I believe the xforms:group element expects to have a ref attribute. >Otherwise I don't believe it has any effect. Does it work if you >remove the groups? > >Duane > >On Sep 12, 2006, at 12:13 PM, [hidden email] wrote: > >> Hello. >> I have problem with simple repeat thing. >> If if load my form it looks fine. But after add action it became >> weird. >> 1.: it renames second group from "No name" to "Second-one" >> 2.: added input doesnt't have it's own group like the first one >> (and it is out of group where it supposed to be) >> >> Data posted by this form are OK even it looks different. >> >> With XSmiles it works fine. (rendring and sending data) >> >> Code: >> >> <?xml version="1.0" encoding="UTF-8"?> >> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:a="a" >> xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xforms="http:// >> www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> >> <head> >> <title /> >> <xforms:model id="Model"> >> <xforms:instance> >> <first xmlns="a"> >> <second-one /> >> </first> >> </xforms:instance> >> <xforms:bind nodeset="/a:first/a:second-one" >> type="xsd:language" /> >> <xforms:submission action="http://xformstest.org/cgi-bin/ >> echo.sh" id="id" method="put" /> >> </xforms:model> >> </head> >> <body> >> <xforms:group> >> <xforms:label>first</xforms:label> >> <xforms:group> >> <xforms:label>No name</xforms:label> >> <xforms:repeat id="second-oneID" model="Model" nodeset="/ >> a:first/a:second-one"> >> <xforms:group> >> <xforms:label>second-one</xforms:label> >> <xforms:input ref="."> >> <xforms:label>language</xforms:label> >> </xforms:input> >> </xforms:group> >> </xforms:repeat> >> </xforms:group> >> </xforms:group> >> <br /> >> <xforms:trigger id="second-oneIDadd"> >> <xforms:label>Add</xforms:label> >> <xforms:insert at="index('second-oneID')" >> ev:event="DOMActivate" nodeset="/a:first/a:second-one" >> position="after" /> >> </xforms:trigger> >> <xforms:trigger id="second-oneIDdel"> >> <xforms:label>Delete</xforms:label> >> <xforms:delete at="index('second-oneID')" >> ev:event="DOMActivate" nodeset="/a:first/a:second-one" /> >> </xforms:trigger> >> <br /> >> <xforms:submit submission="id"> >> <xforms:label>Send</xforms:label> >> </xforms:submit> >> </body> >> </html> >> >> >> -- >> You receive this message as a subscriber of the ops- >> [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 -- 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
|
> I thought xforms:group can be used to group some XForms controls
> without any other effect. (or to set up binding context if attribute > ref is used) But: According to W3C XForms recommendation at > http://www.w3.org/TR/2006/REC-xforms-20060314/slice9.html#id148277 > is Single node binding optional. Plus in W3C examples at > http://www.w3.org/TR/2006/REC-xforms-20060314/sliceG.html is > xforms:group without ref. > > Besides I have to say that without groups it works right. That is right, you don't need @ref or @bind on xforms:group. -Erik -- 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 |