Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

input date of format ddMMyy

517459Mar 22 2007 — edited Apr 18 2007
I'm using a CoreSelectInputDate in my application.
I want the users can use dates like ddMMyyyy, ddMMyy, dd-MM-yy and dd-MM-yyyy as input. I added a af:convertDateTime to the af:selectInputDate component. With a Pattern like dd-MM-yyyy and as SecondaryPattern ddMMyyyy.

Now it works good, all of the inputs will result in a input like dd-MM-yyyy.
BUT! when i set the Autosubmit property of the selectInputDate component to true, it goes wrong. If the user uses an input like ddMMyy or dd-MM-yyyy it seems to go ok, the input is also converted to the correct input(dd-MM-yyyy). But after the component is autosubmitted, it displays a wrong format. For example if the user set 140307 as input, its first converted to 14-03-2007 and after the component is refreshed 14-03-0007 is being displayed.

I want to use the autosubmit=true because there is a valuechangelistener on the component.

Can anyone help me?!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 16 2007
Added on Mar 22 2007
3 comments
805 views