This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes JSF and the fly likes Cannot format given Object as Date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Cannot format given Object as Date" Watch "Cannot format given Object as Date" New topic
Author

Cannot format given Object as Date

dinesh laxman kumar
Greenhorn

Joined: Jul 11, 2012
Posts: 19
Hi,

I have a xhtml page with JSF coding...

When I open the page for the first time I get a proper page where I give inputs.

But after the form is submitted and I request(or refresh) the same page I get the error

"Cannot format given Object as a Date"

Please,
Thanks in advance
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17046
    
  26

I'm afraid that's not enough information for anyone to guess what's wrong.


An IDE is no substitute for an Intelligent Developer.
dinesh laxman kumar
Greenhorn

Joined: Jul 11, 2012
Posts: 19
Hi, it was actually because the date value had to be set to null after form submission

Thanks anyways
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Cannot format given Object as Date
 
It's not a secret anymore!