I've noticed that if a select1 bound to a required element is empty when the
form loads, it has the class "xforms-required-empty" attached to it. However, while emptying an already-set select1 (by selecting a label with an empty value) causes the alert to reappear, it fails to set the xforms-required-empty class on that element again. Since I use a custom style sheet to change the background color of invalid controls, it creates an inconsistency. Attached is a short isolated example that reproduces the issue (both in my own application, and when uploaded to the Xforms Sandbox on orbeon.com) Michael -- Michael B. Klein Digital Initiatives Technology Librarian Boston Public Library (617) 859-2391 [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 select1-style-bug.html (2K) Download Attachment |
Oops. I meant to add...I'm running Orbeon Forms 3.7.0beta1.200808260135.
Michael > From: Michael Klein <[hidden email]> > Reply-To: <[hidden email]> > Date: Fri, 05 Sep 2008 09:09:11 -0400 > To: <[hidden email]> > Subject: [ops-users] Possible bug: CSS class select.xforms-required-empty not > being set > > I've noticed that if a select1 bound to a required element is empty when the > form loads, it has the class "xforms-required-empty" attached to it. > However, while emptying an already-set select1 (by selecting a label with an > empty value) causes the alert to reappear, it fails to set the > xforms-required-empty class on that element again. Since I use a custom > style sheet to change the background color of invalid controls, it creates > an inconsistency. Attached is a short isolated example that reproduces the > issue (both in my own application, and when uploaded to the Xforms Sandbox > on orbeon.com) > > Michael > > -- > Michael B. Klein > Digital Initiatives Technology Librarian > Boston Public Library > (617) 859-2391 > [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 mbklein-2
Michael,
I reproduced this, and added a bug: http://forge.objectweb.org/tracker/index.php?func=detail&aid=311081&group_id=168&atid=350207 -Erik On Sep 5, 2008, at 6:09 AM, Klein, Michael wrote: > I've noticed that if a select1 bound to a required element is empty > when the > form loads, it has the class "xforms-required-empty" attached to it. > However, while emptying an already-set select1 (by selecting a label > with an > empty value) causes the alert to reappear, it fails to set the > xforms-required-empty class on that element again. Since I use a > custom > style sheet to change the background color of invalid controls, it > creates > an inconsistency. Attached is a short isolated example that > reproduces the > issue (both in my own application, and when uploaded to the Xforms > Sandbox > on orbeon.com) > > Michael > > -- > Michael B. Klein > Digital Initiatives Technology Librarian > Boston Public Library > (617) 859-2391 > [hidden email] > > <select1-style-bug.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 > 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 |
Free forum by Nabble | Edit this page |