wood burning stoves 2.0*
The moose likes JSF and the fly likes Can we mention which action to be called in faces-config depending on the outcome? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Can we mention which action to be called in faces-config depending on the outcome?" Watch "Can we mention which action to be called in faces-config depending on the outcome?" New topic
Author

Can we mention which action to be called in faces-config depending on the outcome?

Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

I want to mention the action("#{bean.perfomTask}") in faces-config.Depending on the outcome, the corresonding action method should be called ..Is this possible?
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
No, you can't. Just do it right in the action method, or do it in the constructor of the managed bean associated with the page associated with the outcome.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19

The JSF request/response lifecycle isn't designed for that. However, if all you wanted to to was invoke an action method from another action method, just have the first one do a simple Java call.

The only restriction is that the managed beans will have the context of the original request..


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can we mention which action to be called in faces-config depending on the outcome?
 
Similar Threads
Securing JSF pages
Navigation problem
Navigation to new JSP based on condition
How to know the outcome of backing bean method
navigation problem from main menu