Is it possible in Mojarra-2.1. If I do dispatching to another view from the action method by clicking action buttons:
<h:commandButton value="dispatch" action="#{myBean.action()}" />
The bean:
@ManagedBean
@RequestScoped
public class MyBean{
    public String action(){
        //do some
        return "view";
    }
}
my browser then recieve the content of the view view. The view view, in turn contains the following:
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
      <f:metadata>
            <f:event listener="#{viewBean.doDoubleDispatch()}" type="preRenderView" />
      </f:metadata>
</html>
where
@ManagedBean
@RequestScoped
public class ViewBean{
    public String doDoubleDispatch(){
        //do
        return "finalView";
}
After invoking the doDoubleDispatch method I didn't see the content of finalView. But If click an actionButton which invokes the method it will work perfectly fine.
So, such things are not possible in Mojarra-2.1, aren't they?
 
     
    