Hi all,
when i bind a xs:boolean type to a instance element and let a xforms:input control reference that element, the control is displayed as a checkbox (as desired for me). This works when the xforms:input sits inside a xforms:repeat, too. But if i hide parts of that repeat or the complete repeat and show it again using xforms:group ref=".[<condition>]", some or all of the input controls are turned into standard text input fields. Is this my mistake or a (known) bug? If so, is there a workaround? I've attached a sandbox example. Initially after loading, everything is ok. If i toggle to hide the repeat table and then to show it again, the controls turn into text boxes in the dynamic table, the static table remains ok. 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 boolean-groupProblem.xhtml (4K) Download Attachment |
Administrator
|
Florian,
I reproduce this and yes this is a bug. If you search xforms.js for "Update input control type", you will see that the code in charge of updating the control type to boolean is missing. I suspect this may be part of the problem. We have a bug entered for a similar issue, which I have updated with your reproducible case: http://forge.objectweb.org/tracker/index.php?func=detail&aid=311194&group_id=168&atid=350207 -Erik On Dec 3, 2008, at 1:43 PM, Florian Schmitt wrote: > Hi all, > > when i bind a xs:boolean type to a instance element and let a > xforms:input control reference that element, the control is > displayed as > a checkbox (as desired for me). This works when the xforms:input sits > inside a xforms:repeat, too. > > But if i hide parts of that repeat or the complete repeat and show it > again using xforms:group ref=".[<condition>]", some or all of the > input > controls are turned into standard text input fields. > > Is this my mistake or a (known) bug? If so, is there a workaround? > > I've attached a sandbox example. Initially after loading, everything > is > ok. If i toggle to hide the repeat table and then to show it again, > the > controls turn into text boxes in the dynamic table, the static table > remains ok. > > > florian > <boolean-groupProblem.xhtml> > -- > 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 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Erik,
i've tried to create a patch for this issue - my test case works now with that patch applied, but i didn't test it, for example, with a group of checkboxes (as with select@appearance=full) xforms.js.patch florian |
In reply to this post by Erik Bruchez
Did this get fixed?
Looking at the bug report, all I see is that the defect was closed on Feb 3rd, there's no statement of what was done, if anything. This is a big problem for us on 3.6, and I don't want to go through the effort of migrating to 3.7 if nothing's changed. Thanks. rodney
|
Administrator
|
Rodney,
On Feb 26, 2009, at 3:49 PM, Rodney Gitzel wrote: > Did this get fixed? > > Looking at the bug report, all I see is that the defect was closed > on Feb > 3rd, there's no statement of what was done, if anything. Yes, this is fixed now. It was fixed just a few weeks ago. 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 |
Free forum by Nabble | Edit this page |