aspose file tools*
The moose likes JSF and the fly likes Strange behavior: action method not called when button submitted Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Strange behavior: action method not called when button submitted" Watch "Strange behavior: action method not called when button submitted" New topic
Author

Strange behavior: action method not called when button submitted

Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
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

Joined: Aug 27, 2002
Posts: 455
Add an error message tag for "ratingField" and see if JSF is throwing any error.

Thanks,
[ August 17, 2006: Message edited by: Rajeev Ravindran ]

SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
Thanks for the reply. The problem is that I was using primitive types and Jsf does not like that apparently.
Julien.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Strange behavior: action method not called when button submitted