Hi,
i've encountered a problem regarding the handling of a switch/case inside a repeat table. Please check the attached sandbox test case. It behaves correctly in the online sandbox (3.7beta1 ?), but fails in the latest nightly builds. The task: switch between two sets of repeat table cells (in my example: only one cell). My approach: use the following structure: <xhtml:table> <xhtml:tr> tablehead... </xhtml:tr> <xforms:repeat ...> <xhtml:tr> <xforms:switch> <xforms:case id="case1" selected="true"> <xhtml:td> content for case 1 </xhtml:td> </xforms:case> <xforms:case id="case2" selected="false"> <xhtml:td> content for case 2 </xhtml:td> </xforms:case> </xforms:switch> <xhtml:td> case-independent content </xhtml:td> </xhtml:tr> </xforms:repeat> </xhtml:table> The Result: - in the online sandbox (Orbeon Forms 3.7.0beta1.200808261006), the content of the currently selected row changes according to the selected case (--> no problem :-) ). - in the recent nightly builds, the table structure is initially broken, there are empty cells inserted before and after the xforms:cases (?) in every row, not only the selected one. :-| 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 OW2 mailing lists service home page: http://www.ow2.org/wws tabletest2.xhtml (3K) Download Attachment |
Hmm, I wonder if this is related to my earlier posting:
http://www.nabble.com/Bug-with-case-elements-in-a-repeat-control-td20723544.html#a20723544 Chris. Florian Schmitt wrote: > Hi, > > i've encountered a problem regarding the handling of a switch/case > inside a repeat table. Please check the attached sandbox test case. It > behaves correctly in the online sandbox (3.7beta1 ?), but fails in the > latest nightly builds. > > The task: switch between two sets of repeat table cells (in my example: > only one cell). > > My approach: use the following structure: > > <xhtml:table> > <xhtml:tr> > tablehead... > </xhtml:tr> > <xforms:repeat ...> > <xhtml:tr> > <xforms:switch> > <xforms:case id="case1" selected="true"> > <xhtml:td> > content for case 1 > </xhtml:td> > </xforms:case> > <xforms:case id="case2" selected="false"> > <xhtml:td> > content for case 2 > </xhtml:td> > </xforms:case> > </xforms:switch> > <xhtml:td> > case-independent content > </xhtml:td> > </xhtml:tr> > </xforms:repeat> > </xhtml:table> > > The Result: > > - in the online sandbox (Orbeon Forms 3.7.0beta1.200808261006), the > content of the currently selected row changes according to the selected > case (--> no problem :-) ). > > - in the recent nightly builds, the table structure is initially broken, > there are empty cells inserted before and after the xforms:cases (?) in > every row, not only the selected one. :-| > > florian > Chris Bailey Senior Technical Researcher Institute for Learning and Research Technology University of Bristol [hidden email] -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by fl.schmitt(ops-users)
Florian,
On Dec 18, 2008, at 7:23 AM, Florian Schmitt wrote: > i've encountered a problem regarding the handling of a switch/case > inside a repeat table. Please check the attached sandbox test case. It > behaves correctly in the online sandbox (3.7beta1 ?), but fails in the > latest nightly builds. I tried your example and just checked in a fix to the CSS for this. You'll find it in the next nightly build. You'll let us know if this work for you when you get a chance to try it out. Since we are doing some "interesting" things with the CSS, I added a page on the Wiki to better document it: http://wiki.orbeon.com/forms/doc/contributor-guide/xforms-switch-case Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Alessandro,
> I tried your example and just checked in a fix to the CSS for this. > You'll find it in the next nightly build. You'll let us know if this > work for you when you get a chance to try it out. great, thanks a lot - i will test it next monday at work. 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |