input date of format ddMMyy
517459Mar 22 2007 — edited Apr 18 2007I'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?!