Forward action to another action
In struts we forward from one action to another action, How can we do this in jsf? Thanks
[110 byte] By [
Hunka] at [2007-10-3 0:19:27]

public String executeSomethingA () {
FacesContext context = FacesContext.getCurrentInstance();
MyManagedBean mb = (MyManagedBean)context.getApplication().getVariableResolver().resolveVariable(context, "#{myManagedBean}");
String outcome = mb.executeSomethingB();
return outcome;
}
Rulasa at 2007-7-14 17:10:47 >

Thank you, Rulas.I'm new to JSF, so it's a very natural way to use FacesContext in backing bean in JSF?I mean that will bring extra burden for unit test to make a mock FacesContext instance.
Hunka at 2007-7-14 17:10:47 >
