| 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
|
|
|