Login  Register

Re: Re: Date formatting in Orbeon 3.7.1.

Posted by Alessandro Vernet on Nov 10, 2009; 2:29am
URL: https://discuss.orbeon.com/Date-formatting-in-Orbeon-3-7-1-tp278175p585215.html

Emil,

On Tue, Nov 3, 2009 at 3:22 AM, Emil <[hidden email]> 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 [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