This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSF and the fly likes EL 2.2 in JbossAS 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "EL 2.2 in JbossAS 6" Watch "EL 2.2 in JbossAS 6" New topic
Author

EL 2.2 in JbossAS 6

Jose Rodolfo freitas
Greenhorn

Joined: Sep 01, 2005
Posts: 9
Consider the class:



It should be possible to access both foo property and testString method through EL v2.2, right? or am I missing something?



I've already tried:



But the server tells that it can not find the testString property whichever way I try using the method.

-SessionBean-TestBean_$$_WeldProxy' does not have the property 'testString'.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16022
    
  20

No, that won't work.JSF value attributes refer to properties, not arbitrary Java code. To make your sample elements work, you'd need a "public String getTestString()" method.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EL 2.2 in JbossAS 6