Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
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: 17421

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.

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