Hello all, I’m trying to make Orbeon behave differently when
validating a date-typed xforms:input. Orbeon’s standard behavior is to
change such an input to a string-typed field upon entering an invalid date (or
something completely from a date). That behavior is fine; thing is that I want
Orbeon to change the field back to a date-typed field in case after all a date
has been entered. (another solution I could live with is using a strict mask
for these fields in order to prevent wrong data to be entered in first place)
We’re on Orbeon 3.7.1. Best, Robin -- 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
|
Robin,
I am not sure to understand what you are saying. Could you give us a concrete example of what you mean? Alex On Mon, Mar 22, 2010 at 8:09 AM, Robin Diederen <[hidden email]> wrote: > Hello all, > > > > I’m trying to make Orbeon behave differently when validating a date-typed > xforms:input. Orbeon’s standard behavior is to change such an input to a > string-typed field upon entering an invalid date (or something completely > from a date). That behavior is fine; thing is that I want Orbeon to change > the field back to a date-typed field in case after all a date has been > entered. > > > > (another solution I could live with is using a strict mask for these fields > in order to prevent wrong data to be entered in first place) > > Are there any nice ways to achieve this without modifiying Orbeon’s source > code? I’d rather not do that, as it might break Orbeon and surely limits us > in keeping Orbeon up to date. > > > > We’re on Orbeon 3.7.1. > > > > Best, Robin > > > > > > > > -- > 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, open-source, for the Enterprise - http://www.orbeon.com/ My 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi there Alex,
I'll try to give you a good example.
In case I have an input box of the date type (so xforms:input with xs:date as type) I get a nice input box with a calendar icon next to it. For example, check the "Validation" section on http://www.orbeon.com/orbeon/doc/reference-xforms-guide#xforms-mips.
Whenever you type something which cannot be validated as a date into this input box, the calendar icon appears and the xforms:input is treated as a string. From a technical point of view, this behavior is understandable.
To end users, it's impossible to have the field rendered as a date field again without reloading the form (as the only solution is to enter an ISO formatted datetime string). And that's what I like to change.
So I'm looking into two solutions, both are equally fine to me: 1. A less strict / easier to user validation system (for example, never hiding the calendar icon) so the user can restore the field by himself 2. A mask on the input box, making it impossiblle to enter anything but a valid date.
I hope that clears things a bit. If not, I'll dig up some code. Thanks!
Best, Robin -----Original message----- -- 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
|
Hi Robin,
I don't get the part about users having to reload the form to enter a date. If you load the XForms Controls example (http://localhost:8080/orbeon/xforms-controls/), go to the Typed Controls, in the date filed you can type "gaga". That is not a valid date. But now if you click again on the text field in the UI, the calendar shows up so you can select a date. Are you seeing something different? Alex On Tue, Mar 23, 2010 at 3:04 PM, Robin Diederen <[hidden email]> wrote: > Hi there Alex, > > > > I'll try to give you a good example. > > > > In case I have an input box of the date type (so xforms:input with xs:date > as type) I get a nice input box with a calendar icon next to it. For > example, check the "Validation" section on > http://www.orbeon.com/orbeon/doc/reference-xforms-guide#xforms-mips. > > > > Whenever you type something which cannot be validated as a date into this > input box, the calendar icon appears and the xforms:input is treated as a > string. From a technical point of view, this behavior is understandable. > > > > To end users, it's impossible to have the field rendered as a date field > again without reloading the form (as the only solution is to enter an ISO > formatted datetime string). And that's what I like to change. > > > > So I'm looking into two solutions, both are equally fine to me: > > 1. A less strict / easier to user validation system (for example, never > hiding the calendar icon) so the user can restore the field by himself > > 2. A mask on the input box, making it impossiblle to enter anything but a > valid date. > > > > I hope that clears things a bit. If not, I'll dig up some code. Thanks! > > > > Best, Robin > > > -----Original message----- > From: Alessandro Vernet <[hidden email]> > Sent: Tue 23-03-2010 19:26 > To: [hidden email]; > Subject: [ops-users] Re: Orbeon date validation? > > Robin, > > I am not sure to understand what you are saying. Could you give us a > concrete example of what you mean? > > Alex > > On Mon, Mar 22, 2010 at 8:09 AM, Robin Diederen <[hidden email]> wrote: >> Hello all, >> >> >> >> I’m trying to make Orbeon behave differently when validating a date-typed >> xforms:input. Orbeon’s standard behavior is to change such an input to a >> string-typed field upon entering an invalid date (or something completely >> from a date). That behavior is fine; thing is that I want Orbeon to change >> the field back to a date-typed field in case after all a date has been >> entered. >> >> >> >> (another solution I could live with is using a strict mask for these >> fields >> in order to prevent wrong data to be entered in first place) >> >> Are there any nice ways to achieve this without modifiying Orbeon’s source >> code? I’d rather not do that, as it might break Orbeon and surely limits >> us >> in keeping Orbeon up to date. >> >> >> >> We’re on Orbeon 3.7.1. >> >> >> >> Best, Robin >> >> >> >> >> >> >> >> -- >> 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, open-source, for the Enterprise - > http://www.orbeon.com/ > My 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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi Alex,
I just gave the latest nightly build a try and in that version the date fields work as I'd suspect it to work. In the version we use in production (3.7.1 developer release from Orbeon.com) upon entering invalid date the date field is rendered as a standard string-typed input box.
Is it safe to upgrade a production environment to a recent nightly build?
Best, Robin -----Original message----- -- 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
|
Hi Robin,
There were significant changes done since the 3.7.1 release, so I wouldn't upgrade a system in production to the latest nightly build without some serious testing. For that matter, I wouldn't even upgrade a system in product from a nightly build of yesterday to one of today without at least some testing :). Alex On Mon, Mar 29, 2010 at 4:18 AM, Robin Diederen <[hidden email]> wrote: > Hi Alex, > > > > I just gave the latest nightly build a try and in that version the date > fields work as I'd suspect it to work. In the version we use in production > (3.7.1 developer release from Orbeon.com) upon entering invalid date the > date field is rendered as a standard string-typed input box. > > > > Is it safe to upgrade a production environment to a recent nightly build? > > > > Best, Robin > > > -----Original message----- > From: Alessandro Vernet <[hidden email]> > Sent: Fri 26-03-2010 01:49 > To: [hidden email]; > Subject: [ops-users] Re: RE: Re: Orbeon date validation? > > Hi Robin, > > I don't get the part about users having to reload the form to enter a > date. If you load the XForms Controls example > (http://localhost:8080/orbeon/xforms-controls/), go to the Typed > Controls, in the date filed you can type "gaga". That is not a valid > date. But now if you click again on the text field in the UI, the > calendar shows up so you can select a date. Are you seeing something > different? > > Alex > > On Tue, Mar 23, 2010 at 3:04 PM, Robin Diederen <[hidden email]> wrote: >> Hi there Alex, >> >> >> >> I'll try to give you a good example. >> >> >> >> In case I have an input box of the date type (so xforms:input with xs:date >> as type) I get a nice input box with a calendar icon next to it. For >> example, check the "Validation" section on >> http://www.orbeon.com/orbeon/doc/reference-xforms-guide#xforms-mips. >> >> >> >> Whenever you type something which cannot be validated as a date into this >> input box, the calendar icon appears and the xforms:input is treated as a >> string. From a technical point of view, this behavior is understandable. >> >> >> >> To end users, it's impossible to have the field rendered as a date field >> again without reloading the form (as the only solution is to enter an ISO >> formatted datetime string). And that's what I like to change. >> >> >> >> So I'm looking into two solutions, both are equally fine to me: >> >> 1. A less strict / easier to user validation system (for example, never >> hiding the calendar icon) so the user can restore the field by himself >> >> 2. A mask on the input box, making it impossiblle to enter anything but a >> valid date. >> >> >> >> I hope that clears things a bit. If not, I'll dig up some code. Thanks! >> >> >> >> Best, Robin >> >> >> -----Original message----- >> From: Alessandro Vernet <[hidden email]> >> Sent: Tue 23-03-2010 19:26 >> To: [hidden email]; >> Subject: [ops-users] Re: Orbeon date validation? >> >> Robin, >> >> I am not sure to understand what you are saying. Could you give us a >> concrete example of what you mean? >> >> Alex >> >> On Mon, Mar 22, 2010 at 8:09 AM, Robin Diederen <[hidden email]> wrote: >>> Hello all, >>> >>> >>> >>> I’m trying to make Orbeon behave differently when validating a date-typed >>> xforms:input. Orbeon’s standard behavior is to change such an input to a >>> string-typed field upon entering an invalid date (or something completely >>> from a date). That behavior is fine; thing is that I want Orbeon to >>> change >>> the field back to a date-typed field in case after all a date has been >>> entered. >>> >>> >>> >>> (another solution I could live with is using a strict mask for these >>> fields >>> in order to prevent wrong data to be entered in first place) >>> >>> Are there any nice ways to achieve this without modifiying Orbeon’s >>> source >>> code? I’d rather not do that, as it might break Orbeon and surely limits >>> us >>> in keeping Orbeon up to date. >>> >>> >>> >>> We’re on Orbeon 3.7.1. >>> >>> >>> >>> Best, Robin >>> >>> >>> >>> >>> >>> >>> >>> -- >>> 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, open-source, for the Enterprise - >> http://www.orbeon.com/ >> My 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 >> >> > > > > -- > Orbeon Forms - Web forms, open-source, for the Enterprise - > http://www.orbeon.com/ > My 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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi Alex,
I'll try to do some testing soon, I think I'll wait for the version containing the Dutch dates etc :-)
Best, Robin -----Original message----- -- 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 |