aspose file tools
The moose likes JSF and the fly likes Calling a managed bean method from JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Calling a managed bean method from JSF" Watch "Calling a managed bean method from JSF" New topic
Author

Calling a managed bean method from JSF

Popescu Ion
Ranch Hand

Joined: Jan 14, 2011
Posts: 33
Hi guys, need your help.
Have this bean :


and JSF code :

and i get every time this error:

What is the matter ? I read that with JSF 2.0, calling methods with parameter is posible. Any idea ?


Sorry for my English, it is not my first language.
Carlo Lopez
Greenhorn

Joined: Mar 05, 2011
Posts: 17

Please check if you have the faces-config.xml file, under the WEB-INF directory. In case you forgot it, and given the context you showed us, I give you an example of the file:



If you want to reach the stars, then divide and conquer
Flavio Henrique Furlanetto
Greenhorn

Joined: Mar 18, 2011
Posts: 1

Hi, the problem here is that you are not allowed to pass a parameter in EL, like you did here:



The only way you can call a method in the backing bean is like:

,

Cheers!
Carlo Lopez
Greenhorn

Joined: Mar 05, 2011
Posts: 17

sorry to dissapoint you but thats not true,

you can pass parameters in EL
Carlo Lopez
Greenhorn

Joined: Mar 05, 2011
Posts: 17

If what I told you doesn't help, please check your web.xml file under WEB-INF, to make it look something like this:



taking into account that you have to change the value of the "welcome-file" property, to the name of your JSF file
 
I agree. Here's the link: jrebel
 
subject: Calling a managed bean method from JSF
 
Similar Threads
Could not instantiate Seam component: motorcycleCategService Problem
paging problem
JDBC in JSP not working
Simple Example for Enums and selectOneRadio
An Error Occurred: javax/persistence/Persistence