aspose file tools*
The moose likes JSF and the fly likes PropertyNotFound in EL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "PropertyNotFound in EL" Watch "PropertyNotFound in EL" New topic
Author

PropertyNotFound in EL

Chris Stewart
Ranch Hand

Joined: Sep 29, 2001
Posts: 124
I've been working on an application and everything has been running fine. Suddenly, a few days ago, I'm getting an exception thrown:



It's kind of odd that "logout" is being referred to as a property when in fact it's a method of the LoginController class. It's declared in EL as an action for a commandlink.

I've been running this code for months with no problems. I think the only changes I made were upgrading to 1.2_09 from 1.2_08 of the JSF RI. Does anyone have any idea why this would be failing?
Chris Stewart
Ranch Hand

Joined: Sep 29, 2001
Posts: 124
I went ahead and migrated to MyFaces 1.2.2 (issue in 1.2.3 with Tomahawk 1.1.6, go figure) since that's something I've been wanting to do. I'm getting the same error message even after the upgrade. Hmm...
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Originally posted by Chris Stewart:



It is complaining that it cannot find the LoginController#getLogout() method.
Chris Stewart
Ranch Hand

Joined: Sep 29, 2001
Posts: 124
Right, and it has been working that way for properties, but logout is an action. It's never been called "getLogout()". It's always been "logout()" and only now is it showing up as an error.
Chris Stewart
Ranch Hand

Joined: Sep 29, 2001
Posts: 124
And for reference, I changed the method name to "getLogout()" and I'm still getting the same error.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Can you show the relevant JSF and backing bean code lines as well?
Chris Stewart
Ranch Hand

Joined: Sep 29, 2001
Posts: 124
Here's a piece from the JSF file:



The LoginController:



faces-config.xml

Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Try declaring it with a String outcome and let it return null. Maybe Facelets doesn't like void action methods.
Chris Stewart
Ranch Hand

Joined: Sep 29, 2001
Posts: 124
Same result. Man, this is killing me. It worked like a charm as little as a week ago. The 1st version of the app is in production now and having no issues.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Haven't you changed some libraries in the meanwhile? Maybe the EL implementations? Start comparing the libraries which runs in production with those at your dev environment. Both the libraries in the web project (/WEB-INF/lib) and those of the appserver (/appserver/lib). Try creating a sandbox project from scratch and see if this problem still occur.
[ August 29, 2008: Message edited by: Bauke Scholtz ]
 
 
subject: PropertyNotFound in EL
 
Similar Threads
problem with EL functions accessing a class property
Data Alignment
Passing a hashmap to a tag file
Unable to access array values using EL
Trouble accessing list by index