Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Kiarash Zamanifar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!