Login  Register

Re: Re: Date formatting in Orbeon 3.7.1.

Posted by Emil on Nov 10, 2009; 8:47am
URL: https://discuss.orbeon.com/Date-formatting-in-Orbeon-3-7-1-tp278175p585296.html

Alex,

Thank you for your tip. Actually, I do want to have a date picker, so it's not a solution which satisfies me in 100% :)
Erik, could you provide me with some more info about the solution you were writing about. I would be grateful.

Best regards

Emil
Alessandro Vernet-2 wrote
Emil,

On Tue, Nov 3, 2009 at 3:22 AM, Emil <emil.hornung@comarch.pl> wrote:
> Sorry, for my previous reply. It looks like I misunderstood you. Solution I
> prefer is to use xs:date type and to add ability to input YYYY-MM-DD format.
> So, I would be grateful if you could help me how to achieve this.

I think what follows should do the trick:

- Instead of: <xforms:bind type="xs:date">
- Write: <xforms:bind constraint=". castable as xs:date">

This way you will check that the user entered a date, but you won't
tell the XForms that the node is of type date, so it won't change its
"appearance" to have a date picker.

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws