Login  Register

Re: Re: Re: Date formatting in Orbeon 3.7.1.

Posted by Alessandro Vernet on Nov 11, 2009; 11:20pm
URL: https://discuss.orbeon.com/Date-formatting-in-Orbeon-3-7-1-tp278175p595868.html

Emil,

On Tue, Nov 10, 2009 at 12:47 AM, Emil <[hidden email]> wrote:
> 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.

* The property driving this is oxf.xforms.format.input.date, defined
in properties-xforms.xml. There you will want to put your format.
* The client-side and server-side code always communicate using the
ISO format. So you need to change the parsing / displaying code in
xforms.js (used when the user changes the value, or a new value is
received from the server) and in Java (used when generating the HTML).
* On the JavaScript side, this is in xforms.js, in ORBEON.util.DateTime.
* In the Java side, you might not have to change anything. I think the
code calls the format-date() with the picture you defined in
properties-xforms.js, so it might just work out of the box. Otherwise,
you can start by the class XFormsInputHandler which is where the HTML
generation starts.

To help with the changes to the JavaScript code, see:
http://wiki.orbeon.com/forms/doc/contributor-guide/javascript-development

You'll let us know how it goes!

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