Thanks Markus, have a good day. Denis.
On Fri, Dec 5, 2008 at 9:13 AM, Döring Markus <[EMAIL PROTECTED]> wrote: > Hi, > not the best solution but I used it in one of my projects: > > Use this code in your returnListener: > > 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 causes the creation of a complete new ViewRoot and so changes the PPR > request into an non PPR request. > An build-in solution would be better of cause. > > Regards > Markus Döring > > > -----Ursprüngliche Nachricht----- > Von: Denis Krukovsky [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 4. Dezember 2008 19:30 > An: users@myfaces.apache.org > Betreff: [Trinidad] Dialogs - turn off the PPR? > > Hi, is there a way to make Trinidad dialogs to interact with main page > using full page reload instead of PPR calls? We have our PPR-disabled > buttons launching dialogs, but every PPR-disabled button on a dialog > causing dialog close does this and main page update using PPR. Same is > true for non-lightweight dialogs. Can a full page reload be used > instead? > > Thanks! > > Denis Krukovsky. > -- Denis Krukovsky http://blogoforum.com/