• Post Reply Bookmark Topic Watch Topic
  • New Topic

CommandButton not recognising bean method

 
Alan Smith
Ranch Hand
Posts: 185
Firefox Browser Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can someone give me pointers as to why my command buttons action attribute is not recognising a bean method I give to it?





EDIT: STUPID MISTAKE, GOT IT WORKING!

If I put "result" into the action attribute, it works and forwards to a results.xhtml page. Also, even though it doesn't read the forward method, when I click submit the URL changes from 'http://localhost:8080/JSF/' (default url when I run the app) to 'http://localhost:8080/JSF/faces/index.xhtml' but the result page doesn't show up. Something must be happening if the url is changing though.

Thanks,
Alan
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!