Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF changing managedbean not working  RSS feed

 
Durk Janssen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

yesterday i started with the coreservlets tutorial into JSF.

I have imported the jsf-blank project into Eclipse and everything seems to work fine. The managedbean already in the project works perfectly.

However, when i add a method to the managebean and try to call it, i get an method not found exception.

The same happens if i create a new bean from scratch and try to call it. (In fact it will give a could not reach bean exception)


Ive tried to troubleshoot already and what i found is that basically as soon as i add anything or change the name of the method in the original bean (and also change the name in the bean.callmethod jsf function) i get an error.

Does anybody have a clue whats going on here?

I cannot post code atm(at work) but i hope the problem makes sense to someone more experienced in JSF.


Steps i took:

1. import project into Eclipse.
2. check that the bean.method action call (action="#{navigator.choosePage}")works on the indexpage. It does indeed work.
3. change the name of the method slightly inside the bean to chooseOtherPage, and the corresponding action action="#{navigator.chooseOtherPage}" call on the indexpage.
4. republish and restart the server

Expected: The jsf action still works.
Actual result: I get a method not found on bean exception.
 
Durk Janssen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welp, it seems ive fixed it by starting a new workspace and do it all over again.

Hate when that happens and you have no idea what actually went wrong.
 
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!