This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JSF and the fly likes EvaluationException: Cannot get value for expression Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "EvaluationException: Cannot get value for expression" Watch "EvaluationException: Cannot get value for expression" New topic
Author

EvaluationException: Cannot get value for expression

Charles McGuire
Ranch Hand

Joined: Jan 18, 2005
Posts: 99
The full meesage is actually:



The bean properties and code portions are down at the end of the message. Now, I know the server has the backing bean. I put a System.out.println statement in the constructor to prove it. When I point my browser to the .jsf page, I can see my output from the constructor of the backing bean on my Tomcat console spew. That tells me it has the bean.

The getAllAgents method is the first method on the .jsp. And yes, I've deleted the application directory and .war file from Tomcat each time I deployed this bugger, which is numbering close to a million.

Other, simpler pages display okay. This one is a little more challenging in that it deals with Lists.

Why can't it load?

From the config file:



From the jsp:



And, most importantly, the offending method in the backing bean. In it's current state you can see where I've hacked at it to try to solve the problem. The System.out.println statements below DO NOT appear in the console. It blows up before it gets to that part.:






Thank you in advance!
[ April 18, 2006: Message edited by: Charles McGuire ]

There's no place like 127.0.0.1
Jim Egerton
Greenhorn

Joined: Jul 23, 2006
Posts: 1
Charles - I've run into what seems to be a similar problem. I can see that backing bean is instantiated, but I get an error accessing it with an expression. Did you ever get anywhere with resolving this?

thanks,
jim
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EvaluationException: Cannot get value for expression
 
Similar Threads
Unable to call Action Methof
adding rows to a datatable, depending on the array size
Problem with "rendered" Flag
Actions don't work inside a dataTable column?
JSF and checkboxes