• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Where does it come from? could not be understood as a date.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi every body,
I have this code on my jsf page:
[color=brown]

[/color]

but when I submit the form with valid data as the pattern specified, I get the error message : "could not be understood as a date.".
the funny point is that having the form submitted with "6/25/2011" , I get my page redisplay with the filled date : 06/25/2011 that means it has already set in managed bean, correctly. so where this error message come from is really strange. I use ajax call to fill other dependent select fields, so I use the ViewScope for the back bean.
any help?
thanks in advance.
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Kiarash!

What happens when you enter the date as "06/25/2011" with the leading zero?
 
Kiarash Zamanifar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:Welcome to the JavaRanch, Kiarash!

What happens when you enter the date as "06/25/2011" with the leading zero?


Hi there,
let me say that the error has gone as strange as it came.
but, I have to add that the page could be accessed by typed URL or by a link at the end of the result (action="report2") page.the link is created by this:

so I had to add two converters, one for request parameters added to page URL, and one for user inputs.
After full ajaxifing my page(if you don't want to loose collected data on action page when using ViewScope) I removed all <f:viewParam ... on my page and show the result in current page. I'm not sure that having two converters for a bean property causes the problem but then no sign of that error
the removed codes are:

may be I have to face it again.
thank you anyway.
 
I promise I will be the best, most loyal friend ever! All for this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic