Hi All,
I came across a sort of special-case issue recently with the date picker in the most recent nightly build; I'm not sure yet if it's a bug or a flaw in my code. I have an xf:select1 text field that uses the 'appearance=xxforms:autocomplete' attribute, and next to it is a date picker. Naturally, I would like the value of the field to reflect what the user selects within the date picker. Now, originally this did not work; when a new section is added, and the date picker corresponding to the new field is clicked, the value of the new text field does not update. HOWEVER, for some reason if I provided inline XML instance data, rather than referencing it from an external file, everything works as expected. Attached is my code, with two different XHTML documents: one that references an external XML file to provide instance data, and another that provides inline instance data. I would much prefer to have the instance data external if possible. Steps to reproduce problem: 1) Download attachment and make sure the 'view' attribute of the page element in page_flow.xml is set to "test_xforms.xhtml" (external instance data) 2) Click date picker and select any date - value should be reflected in text field to the left. 3) Click the green "+" icon to add a new section. 4) Click the date picker of the newly added section - value will not be in the new text field, but the XML in the Instance Inspector will still be changed. 5) Change 'view' attribute in page_flow.xml to "test_xforms2.xhtml" (inline instance data) and repeat steps 2 through 4. Everything should work fine. Thanks in advance!! ---Philip xforms-bind-test.zip |
Erik/Alex,
I was just wondering if you had been able to reproduce my issue - or perhaps my thread slipped through the cracks. :-) ---Philip |
Philip,
I had a look at this and found a couple of issue: * It seems that inline instances see white space within leaf elements collapsed. This explains the difference between the inline vs. external scenario. * When space is NOT collapsed, the value of the select control contains a "\n" character. This throws off some comparison logic in xforms.js. I entered two bugs: http://forge.ow2.org/tracker/index.php?func=detail&aid=314120&group_id=168&atid=350207 http://forge.ow2.org/tracker/index.php?func=detail&aid=314121&group_id=168&atid=350207 It would be good to address these issues, but in the meanwhile, if you write your instances as: <pubdate></pubdate or <pubdate/> instead of: <pubdate> </pubdate> Your problem should go away. -Erik On Thu, Jul 30, 2009 at 1:05 PM, Philip.Cantin<[hidden email]> wrote: > > Erik/Alex, > > I was just wondering if you had been able to reproduce my issue - or perhaps > my thread slipped through the cracks. :-) > > > ---Philip > > -- > View this message in context: http://www.nabble.com/Repeatable-date-fields-not-working-properly-with-xforms%3Aselect1-tp24646446p24746382.html > Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.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 > > -- 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 |