This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


JavaRanch » Java Forums » Java » JSF
Bookmark "EL" Watch "EL" New topic
Author

EL

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 ?
Thnx


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

Joined: Jun 25, 2001
Posts: 16095
    
  21

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EL