This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
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: 15952
    
  19

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.
 
jQuery in Action, 2nd edition
 
subject: EL
 
Similar Threads
help to understand basic concept in JSF
Advanced overloading
Static blocks
Creating managed bean with different parametrs
color picker in jsf