File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "EL 2.2 in JbossAS 6" Watch "EL 2.2 in JbossAS 6" New topic

EL 2.2 in JbossAS 6

Jose Rodolfo freitas

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

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: EL 2.2 in JbossAS 6
It's not a secret anymore!