Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't get to the bean methods  RSS feed

Ricardo J Marques
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm a starter on JSF 2.0, and i have been trying to play a bit on it, but i'm on a heavy battle against a weird case here, can't find a reason for this problem:

I have this facelets composition:

And the backing bean:

public class ContentItemBean {


public String formSubmit()
try {
// Set current system date

ContentItemCommand c = new ContentItemCommand();


return "success";
catch(Exception e)
return "exception";

public String formCancel()
return "success";


And i want, is that when i click the Cancel or Submit button to perform a server side operation. But for some reason the application never get to the backing bean method, i usally put a breaking point on both methods, and whenever I click a button the form submits for the page page without trigering the events. Another thing that i found wierd, the HTML that s generated doesn't include none javascript to make the form submit.

Any idea?

Thanks in advance.

PS: I'm using JSF 2.0 (Mojarra), Glassfish 3 and Netbeans 6.9.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!