aspose file tools
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 Badass: Making Users Awesome this week in the Game Development 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: 16535

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