This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JSF and the fly likes EL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "EL" Watch "EL" New topic


Popescu Ion
Ranch Hand

Joined: Jan 14, 2011
Posts: 33
Hi guys,
I have a bean method process(String value) and I want to call this method in my JSF with other method. Something like this :

#{myBean.process( #{cell.getId()} )}

How cand I do that inside the JSF page ?
Any help ?

Sorry for my English, it is not my first language.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16470

The first - and most important question is: Should you?

When you place logic in the View, you're violating the contract of the MVC design paradigm. The only logic that should normally appear on a JSF View is display-control logic, and even then I recommend that you keep the actual logic to a minimum - debugging and maintaining that stuff is a real pain.

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