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

Strange behavior: action method not called when button submitted

 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
My JSF app is diplaying a strange behavior: when the submit button is pressed the action method of my managed bean is not called.

Here is my managed bean:



Here is my jsp page:



here is my faces config file:



The problem occurs when the field ratingField is left blank (which amounts to it being set at 0 since it is an int).

Can anyone help please?

Thanks in advance,

Julien.
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add an error message tag for "ratingField" and see if JSF is throwing any error.

Thanks,
[ August 17, 2006: Message edited by: Rajeev Ravindran ]
 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. The problem is that I was using primitive types and Jsf does not like that apparently.
Julien.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic