myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Döring (JIRA) <...@myfaces.apache.org>
Subject [jira] Created: (TRINIDAD-1337) Provide an easy way to change an PPR request into an non PPR request.
Date Mon, 08 Dec 2008 10:04:46 GMT
Provide an easy way to change an PPR request into an non PPR request.
---------------------------------------------------------------------

                 Key: TRINIDAD-1337
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1337
             Project: MyFaces Trinidad
          Issue Type: Improvement
    Affects Versions: 1.0.10-core, 1.2.10-core
         Environment: an all systems
            Reporter: Markus Döring
            Priority: Minor


Some times it's necessary to change an PPR request to a non PPR request at request time. This
is especially useful if an closeDialog() returnListener should cause a full page reload.

Current workaround solution in returnListener:
public void processAction(ActionEvent event) {
   FacesContext context = Context.facesContext(); if(context != null) {
       boolean isPPR = Context.requestContext().isPartialRequest(context);
       if (isPPR) {
            UIViewRoot viewRoot = context.getApplication().getViewHandler().createView(context,
context.getViewRoot().getViewId());
            context.setViewRoot(viewRoot);
       }
   }
}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message