Hi,
just a little formatting question, cause i couldn't
find any hint on this.
I have the following line in my view und i wanted
to format them a little bit.
In this case <xforms:itemset
nodeset="instance('schema-instance')/xs:simpleType[@name =
'steps']//xs:enumeration"> has about 13 items and i wanted to display
them in 3 lines. So i need a way to insert a linebreak <br/> after every 5
items.
Could anybody tell me how to achiev
that?
Thanks, Marcus
<table class="forms-gridtable">
<tr>
<th
class="dmv-heading-column">
<xforms:output model="resources-model"
ref="instance('resources-instance')/forms/detail/titles/Schritte"/>
</th>
</tr>
<tr>
<td>
<xforms:select ref="Schritte"
appearance="full">
<xforms:itemset
nodeset="instance('schema-instance')/xs:simpleType[@name =
'steps']//xs:enumeration">
<xforms:label
ref="@value"/>
<xforms:value
ref="@value"/>
</xforms:itemset>
</xforms:select><br/><br/>
</td>
</tr>
</table>
-- 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
|
Marcus,
It would be nice to be able to do this easily, but I fear there is no easy way at the moment. You could (ouch) post-process the generated XHTML with XSLT, in your theme for example. But I reckon that this is an ugly solution. There are common use cases that it would be nice to handle: * Checkboxes all in a row (default) * Checkboxes all in a column (you can do this with CSS) * Checkboxes in a "grid" (your case) It would be nice also to be able to position the labels on the right or the left of the checkboxes. -Erik Marcus wrote: > Hi, > just a little formatting question, cause i couldn't find any hint on this. > I have the following line in my view und i wanted to format them a > little bit. > In this case <xforms:itemset > nodeset="instance('schema-instance')/xs:simpleType[@name = > 'steps']//xs:enumeration"> has about 13 items and i wanted to display > them in 3 lines. So i need a way to insert a linebreak <br/> after every > 5 items. > Could anybody tell me how to achiev that? > > Thanks, Marcus > > > > <table class="forms-gridtable"> > <tr> > <th class="dmv-heading-column"> > <xforms:output model="resources-model" > ref="instance('resources-instance')/forms/detail/titles/Schritte"/> > </th> > </tr> > <tr> > <td> > <xforms:select ref="Schritte" appearance="full"> > <xforms:itemset > nodeset="instance('schema-instance')/xs:simpleType[@name = > 'steps']//xs:enumeration"> > <xforms:label ref="@value"/> > <xforms:value ref="@value"/> > </xforms:itemset> > </xforms:select><br/><br/> > </td> > </tr> > </table> > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way 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 |
Hi Erik,
perhaps you can tell me where i can find this Function in the xforms-code and than i could try to implement that myself - perhaps it would be possible to add some format-attributes that would allow that. At the moment i live with the one implemented, but if i have the time, i will try to find a possibilty. So, perhaps you can tell where i could find that in the source-code? Thanks, Marcus ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> To: <[hidden email]> Sent: Friday, June 01, 2007 1:13 AM Subject: Re: [ops-users] Possibility to format xforms:itemset? > Marcus, > > It would be nice to be able to do this easily, but I fear there is no > easy way at the moment. You could (ouch) post-process the generated > XHTML with XSLT, in your theme for example. But I reckon that this is an > ugly solution. > > There are common use cases that it would be nice to handle: > > * Checkboxes all in a row (default) > * Checkboxes all in a column (you can do this with CSS) > * Checkboxes in a "grid" (your case) > > It would be nice also to be able to position the labels on the right or > the left of the checkboxes. > > -Erik > > Marcus wrote: >> Hi, >> just a little formatting question, cause i couldn't find any hint on >> this. >> I have the following line in my view und i wanted to format them a >> little bit. >> In this case <xforms:itemset >> nodeset="instance('schema-instance')/xs:simpleType[@name = >> 'steps']//xs:enumeration"> has about 13 items and i wanted to display >> them in 3 lines. So i need a way to insert a linebreak <br/> after every >> 5 items. >> Could anybody tell me how to achiev that? >> >> Thanks, Marcus >> >> >> >> <table class="forms-gridtable"> >> <tr> >> <th class="dmv-heading-column"> >> <xforms:output model="resources-model" >> ref="instance('resources-instance')/forms/detail/titles/Schritte"/> >> </th> >> </tr> >> <tr> >> <td> >> <xforms:select ref="Schritte" appearance="full"> >> <xforms:itemset >> nodeset="instance('schema-instance')/xs:simpleType[@name = >> 'steps']//xs:enumeration"> >> <xforms:label ref="@value"/> >> <xforms:value ref="@value"/> >> </xforms:itemset> >> </xforms:select><br/><br/> >> </td> >> </tr> >> </table> >> > > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > 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 > -- 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
|
Marcus,
The place where the markup for xforms:select and xforms:select1 is: org.orbeon.oxf.xforms.processor.handlers.XFormsSelect1Handler.java I wouldn't say the code in there is pretty though ;-) -Erik Marcus wrote: > Hi Erik, > perhaps you can tell me where i can find this Function in the > xforms-code and than i could try to implement that myself - perhaps it > would be possible to add some format-attributes that would allow that. > At the moment i live with the one implemented, but if i have the time, i > will try to find a possibilty. > > So, perhaps you can tell where i could find that in the source-code? > Thanks, Marcus > > > ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> > To: <[hidden email]> > Sent: Friday, June 01, 2007 1:13 AM > Subject: Re: [ops-users] Possibility to format xforms:itemset? > > >> Marcus, >> >> It would be nice to be able to do this easily, but I fear there is no >> easy way at the moment. You could (ouch) post-process the generated >> XHTML with XSLT, in your theme for example. But I reckon that this is an >> ugly solution. >> >> There are common use cases that it would be nice to handle: >> >> * Checkboxes all in a row (default) >> * Checkboxes all in a column (you can do this with CSS) >> * Checkboxes in a "grid" (your case) >> >> It would be nice also to be able to position the labels on the right or >> the left of the checkboxes. >> >> -Erik >> >> Marcus wrote: >>> Hi, >>> just a little formatting question, cause i couldn't find any hint on >>> this. >>> I have the following line in my view und i wanted to format them a >>> little bit. >>> In this case <xforms:itemset >>> nodeset="instance('schema-instance')/xs:simpleType[@name = >>> 'steps']//xs:enumeration"> has about 13 items and i wanted to display >>> them in 3 lines. So i need a way to insert a linebreak <br/> after every >>> 5 items. >>> Could anybody tell me how to achiev that? >>> >>> Thanks, Marcus >>> >>> >>> >>> <table class="forms-gridtable"> >>> <tr> >>> <th class="dmv-heading-column"> >>> <xforms:output model="resources-model" >>> ref="instance('resources-instance')/forms/detail/titles/Schritte"/> >>> </th> >>> </tr> >>> <tr> >>> <td> >>> <xforms:select ref="Schritte" appearance="full"> >>> <xforms:itemset >>> nodeset="instance('schema-instance')/xs:simpleType[@name = >>> 'steps']//xs:enumeration"> >>> <xforms:label ref="@value"/> >>> <xforms:value ref="@value"/> >>> </xforms:itemset> >>> </xforms:select><br/><br/> >>> </td> >>> </tr> >>> </table> >>> >> >> >> -- >> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >> 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 >> > > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way 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 |
In reply to this post by Erik Bruchez
Hi,
> It would be nice to be able to do this easily, but I fear there is no > easy way at the moment. You could (ouch) post-process the generated > XHTML with XSLT, in your theme for example. But I reckon that this is an > ugly solution. another workaround proposal: to get the radiobuttons in multiple rows, use multiple select1 controls and restrict the referenced nodeset using position(). Of course not nice because the need of multiple xforms controls where only one should be, but seems to work without much effort :) florian -- 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
|
On 6/1/07, Florian Schmitt <[hidden email]> wrote:
> Hi, > > > It would be nice to be able to do this easily, but I fear there is no > > easy way at the moment. You could (ouch) post-process the generated > > XHTML with XSLT, in your theme for example. But I reckon that this is an > > ugly solution. > > another workaround proposal: to get the radiobuttons in multiple rows, > use multiple select1 controls and restrict the referenced nodeset using > position(). Of course not nice because the need of multiple xforms > controls where only one should be, but seems to work without much effort :) width. You set the width so 3 checkboxes can fit on each line. With this, if the label on those checkboxes varies widely you might not always have 3 in a line: you will have 4 when the labels are shorter and 2 when longer. But one could argue that this is a feature :). Alex -- Orbeon Forms - Web 2.0 Forms, open-source, 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
|
In reply to this post by fl.schmitt(ops-users)
Florian Schmitt wrote:
> Hi, > >> It would be nice to be able to do this easily, but I fear there is no >> easy way at the moment. You could (ouch) post-process the generated >> XHTML with XSLT, in your theme for example. But I reckon that this is >> an ugly solution. > > another workaround proposal: to get the radiobuttons in multiple rows, > use multiple select1 controls and restrict the referenced nodeset using > position(). Of course not nice because the need of multiple xforms > controls where only one should be, but seems to work without much effort :) xforms:select1, it doesn't with xforms:select because selecting an item in the second row clears any item selected with the first row. I am not sure if that behavior is correct or not, I suspect not as I don't read anything in the spec on this topic. However the spec also says: "If any selected values do not have a choice with a matching storage value, the form control must indicate an out-of-range condition." This seems to mean that xforms xforms:select, the controls will indicate an out of range condition (although Orbeon Forms doesn't do this now). I asked questions on the public-forms mailing-list at W3C to try to figure this out better. -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way 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 |