Previously I was able to do something like this to put a group label
inside a table header: <xforms:group> <xhtml:table> <xhtml:thead> <xhtml:tr> <xhtml:td> <xforms:label>A group</xforms:label> </xhtml:td> </xhtml:tr> </xhtml:thead> <xhtml:tbody> <xhtml:tr> <xhtml:td> <xforms:input bind="bind-input1" id="input1"> <xforms:label>Input</xforms:label> </xforms:input> </xhtml:td> </xhtml:tr> </xhtml:tbody> </xhtml:table> </xforms:group> This no longer works as a result of a fix for [ #305144 ] Group with label removes labels from children controls: the label is explicitly written out as a child of the generated <xhtml:span>. Is this correct? Should the above approach still be supported? 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Adrian,
I am not sure if this is at all valid XForms, and if it is, it is not clear to me what this means. What semantic do you want to describe by having this <xforms:label> in a <xhtml:td>? Alex On 5/16/06, Adrian Baker <[hidden email]> wrote: > Previously I was able to do something like this to put a group label > inside a table header: > > <xforms:group> > <xhtml:table> > <xhtml:thead> > <xhtml:tr> > <xhtml:td> > <xforms:label>A group</xforms:label> > </xhtml:td> > </xhtml:tr> > </xhtml:thead> > <xhtml:tbody> > <xhtml:tr> > <xhtml:td> > <xforms:input bind="bind-input1" id="input1"> > <xforms:label>Input</xforms:label> > </xforms:input> > </xhtml:td> > </xhtml:tr> > </xhtml:tbody> > </xhtml:table> > </xforms:group> > > This no longer works as a result of a fix for [ #305144 ] Group with > label removes labels from children controls: the label is explicitly > written out as a child of the generated <xhtml:span>. Is this correct? > Should the above approach still be supported? > > 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 > 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 |
Well, I want the group to be represented by a table, with it's label in
a <thead> element (controlling the placement of labels in XForms
is a constant challenge!) eg
+----------------+ |Group label | +----------------+ | | | Group contents | | | +----------------+ If this isn't valid I guess I can introduce it down in theme.xsl, in the same way the <xhtml:fieldset> tags get added.. Adrian Alessandro Vernet wrote: 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Adrian,
Our interpretation of the spec is that xforms:label has to be a direct child of a control (or of xforms:group). But you can use xforms:output instead of xforms:label. You lose a bit of semantic, but that's not too much of a problem. By the way at the moment we are not convinced that the automatic post-processing of xforms:group/xforms:label into an xhtml:fieldset, as we do it now, is the best idea. xforms:group supports the @appearance attribute, and that may be a better way of doing it, either natively or with XSLT (but XSLT unfortunately is slower). -Erik Adrian Baker wrote: > Well, I want the group to be represented by a table, with it's label in > a <thead> element (controlling the placement of labels in XForms is a > constant challenge!) eg > > +----------------+ > |Group label | > +----------------+ > | | > | Group contents | > | | > +----------------+ > > If this isn't valid I guess I can introduce it down in theme.xsl, in the > same way the <xhtml:fieldset> tags get added.. > > Adrian > > > Alessandro Vernet wrote: >> Adrian, >> >> I am not sure if this is at all valid XForms, and if it is, it is not >> clear to me what this means. What semantic do you want to describe by >> having this <xforms:label> in a <xhtml:td>? >> >> Alex >> >> On 5/16/06, Adrian Baker <[hidden email]> wrote: >>> Previously I was able to do something like this to put a group label >>> inside a table header: >>> >>> <xforms:group> >>> <xhtml:table> >>> <xhtml:thead> >>> <xhtml:tr> >>> <xhtml:td> >>> <xforms:label>A group</xforms:label> >>> </xhtml:td> >>> </xhtml:tr> >>> </xhtml:thead> >>> <xhtml:tbody> >>> <xhtml:tr> >>> <xhtml:td> >>> <xforms:input bind="bind-input1" id="input1"> >>> <xforms:label>Input</xforms:label> >>> </xforms:input> >>> </xhtml:td> >>> </xhtml:tr> >>> </xhtml:tbody> >>> </xhtml:table> >>> </xforms:group> >>> >>> This no longer works as a result of a fix for [ #305144 ] Group with >>> label removes labels from children controls: the label is explicitly >>> written out as a child of the generated <xhtml:span>. Is this correct? >>> Should the above approach still be supported? >>> >>> 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 >>> 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 >> > > > ------------------------------------------------------------------------ > > > -- > 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 - 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 |