Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Date Format error with af:selectInputDate

Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

I am using <af:selectInputDate> in my application for one of the page.I have added <af:convertDateTime pattern="MM/dd/yyyy"/> for formatting user entered date value.i have also added valuechange listener for this component as well, just to check whether user has actually modified the value in this textfield either manually or by Date picker.

However, if user enters manually value in the textbox, say 04/09/2007, in the valuechange listener method when i have retrieved the user entered value from ValueChangeEvent object using following snippet:

i could see the date in the following format when printed on console

due to this incorrect format, i am facing problems in subsequent operations.

can anybody help me in understanding the reason behind the same as well as can you suggest me code changes (if any) so that i will get proper date in the listener method?

The City calls upon her steadfast protectors. Now for a tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
    Bookmark Topic Watch Topic
  • New Topic