aspose file tools
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
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply 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.


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14456
    
    7

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.
 
I agree. Here's the link: jrebel
 
subject: Can we mention which action to be called in faces-config depending on the outcome?
 
Similar Threads
How to know the outcome of backing bean method
Securing JSF pages
Navigation problem
navigation problem from main menu
Navigation to new JSP based on condition