Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Date field and selectOneMenu

 
Gerardo Tasistro
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Gerardo Tasistro
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope, haven't used messages beyond the basics. Thanks for the tip. I'll check it out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic