It's not a secret anymore!*
The moose likes JSF and the fly likes Problem with Date field and selectOneMenu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with Date field and selectOneMenu" Watch "Problem with Date field and selectOneMenu" New topic
Author

Problem with Date field and selectOneMenu

Gerardo Tasistro
Ranch Hand

Joined: Feb 08, 2005
Posts: 362
Don't know if you've come upon this. I'm having problems with a selectOneMenu and the usage of date fields in my managed beans.

If I create a selectOneMenu and link the value to say a text field all is well. But when I link to

value="#{mybean.mydate.date}" or .month or .year

All stops working. I mean all. The form seems to submit, but the action isn't even called. As if the JSF fails on the validation part. Is this a limitation of JSF? I'm considering working around this with a converter. Any experience?
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
Did you try putting h:messages tag in the JSP and seeing if any error messages are there?

Since action method isn't chances are high that some validation/conversion is failing


- Varun
Gerardo Tasistro
Ranch Hand

Joined: Feb 08, 2005
Posts: 362
Nope, haven't used messages beyond the basics. Thanks for the tip. I'll check it out.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with Date field and selectOneMenu