Login  Register

Re: Date formatting in Orbeon 3.7.1.

Posted by Emil on Nov 03, 2009; 11:22am
URL: https://discuss.orbeon.com/Date-formatting-in-Orbeon-3-7-1-tp278175p360991.html

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.

Best regards
Emil wrote
Erik,

Thank you for your reply. I would be grateful if you could give me some hints how to change this control into an input and add a calendar functionality.

Regards
Erik Bruchez-3 wrote
Emil,

When an input control is bound to a type xs:date or xforms:date, this
is currently not possible: we format the date as you mention below.

You could still do this by NOT using the xs:date or xforms:date type,
and instead using a plain string, and validate with
xforms:bind/@constraint.

Better yet would be to support YYYY-MM-DD input. To do this, some
changes to both the JavaScript code and the Java code is necessary. It
wouldn't be too hard to do though. If you feel like trying, please let
us know and we can guide you!

-Erik

On Fri, Oct 30, 2009 at 4:32 AM, Emil <emil.hornung@comarch.pl> wrote:
>
> Hi everybody,
>
> I'm writing, because I have a problem with a date formatting in my Orbeon
> 3.7.1. I must have the following format in a date control: YYYY-MM-DD.
> Unfortunately, there are only 3 types of formatting available now
> ([M]/[D]/[Y]  or [D]/[M]/[Y] or [D].[M].[Y]). It wasn't an issue in Orbeon
> 3.6, because a date control was rendered as an OUTPUT with a calendar (not
> as an INPUT with a calendar) and more formats were available. My question
> is: can I change a date input format to YYYY-MM-DD, or can I change a
> rendering policy, so a date control is rendered as an output not an input
> (it's fine for me)?
>
> Thanks in advance,
>
> Emil
> --
> View this message in context: http://n4.nabble.com/Date-formatting-in-Orbeon-3-7-1-tp278175p278175.html
> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.
>
>
> --
> 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
>
>


--
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