hello walter, ppr is just useful if you stay on the same page. you close the current page (the dialog), so you don't need ppr here.
regards, gerhard 2009/2/12 Walter Mourão <walter.mou...@gmail.com> > Many thanks Gerhard, > > One last question: should the "Close PPR" command button closes the dialog > ? it doesn't... > > Walter Mourão > http://waltermourao.com.br > http://arcadian.com.br > http://oriens.com.br > > > > On Thu, Feb 12, 2009 at 3:41 PM, Gerhard Petracek < > gerhard.petra...@gmail.com> wrote: > >> hello walter, >> >> your "*... looks like the page was refreshed ...*" is ok - it isn't a >> full page refresh. >> >> you can test it e.g. via a random value bound to an output-component >> (which is in the page). it should only change if you do none-ppr requests >> (or you trigger it). >> >> regards, >> gerhard >> >> >> >> 2009/2/12 Walter Mourão <walter.mou...@gmail.com> >> >> Simple project attached. >>> >>> Behavior (in bold the things I think should not happen) : >>> 1 - write something in the inputText, click the "Press me" button and PPR >>> works fine, showing the text in uppercase; >>> 2 - click "Open Dialog PPR", the dialog opens but *looks like the page >>> was refreshed* because the cursor changes and the browser status bar >>> shows load activity, differently the PPR behavior when clicking the "Press >>> me" buttons; >>> 3 - click the "Close PPR" button in the dialog, the dialog *does not >>> close* and the dialog reloads; >>> 4 - close the dialog with "Close no-PPR", the dialog closes and the the >>> browser shows activity like the main page was refreshed; >>> >>> open dialog command buttons: >>> ... >>> <tr:commandButton id="openDialogPPRAction" text="Open Dialog >>> PPR" >>> action="#{testBean.openDialog}" partialSubmit="true" >>> useWindow="true" >>> windowHeight="200" windowWidth="300" immediate="true"/> >>> <tr:commandButton id="openDialogNoPPRAction" text="Open Dialog >>> no-PPR" >>> action="#{testBean.openDialog}" partialSubmit="false" >>> useWindow="true" windowHeight="200" windowWidth="300" >>> immediate="true"/> >>> ... >>> >>> close dialog command buttons: >>> ... >>> <tr:commandButton immediate="true" partialSubmit="true" >>> action="#{testBean.closeDialog}" text="Close PPR"/> >>> <tr:commandButton immediate="true" partialSubmit="false" >>> action="#{testBean.closeDialog}" text="Close >>> no-PPR"/> >>> ... >>> >>> faces-config: >>> ... >>> <!-- navigation rules for page2.jspx as dialog --> >>> <navigation-rule> >>> <from-view-id>/*</from-view-id> >>> <navigation-case> >>> <from-outcome>dialog:testDialog</from-outcome> >>> <to-view-id>/dialog.jspx</to-view-id> >>> </navigation-case> >>> </navigation-rule> >>> ... >>> >>> testBean >>> ... >>> public String openDialog(){ >>> return "dialog:testDialog"; >>> } >>> >>> public String closeDialog(){ >>> RequestContext.getCurrentInstance().returnFromDialog(null,null); >>> return null; >>> } >>> ... >>> >>> Comments are welcome. >>> >>> Cheers, >>> >>> Walter Mourão >>> http://waltermourao.com.br >>> http://arcadian.com.br >>> http://oriens.com.br >>> >>> >>> >>> On Thu, Feb 12, 2009 at 7:17 AM, Gerhard Petracek < >>> gerhard.petra...@gmail.com> wrote: >>> >>>> hello, >>>> >>>> yes - that's the desired behaviour. >>>> it sounds like walter talked about a full page refresh. in case of ppr >>>> it shouldn't occur. >>>> >>>> regards, >>>> gerhard >>>> >>>> >>>> >>>> 2009/2/12 Jonathan Bullock <jonathan.bull...@fugro-data.com> >>>> >>>> We're using the dialog framework too and when the link is clicked a XHR >>>>> POST is made to the page before the window loads and when the window is >>>>> closed. >>>>> >>>>> Jon >>>>> >>>>> On Wed, 2009-02-11 at 11:54 -0800, Richard Yee wrote: >>>>> > Are you using any custom JavaScript? >>>>> > >>>>> > -R >>>>> > >>>>> > On Wed, Feb 11, 2009 at 10:24 AM, Walter Mourão < >>>>> walter.mou...@gmail.com> wrote: >>>>> > > Actually the refresh occurs after closing the dialog too... :-( >>>>> > > >>>>> > > Hints ? Answers ? >>>>> > > >>>>> > > Thanks in advance, >>>>> > > >>>>> > > Walter Mourão >>>>> > > http://waltermourao.com.br >>>>> > > http://arcadian.com.br >>>>> > > http://oriens.com.br >>>>> > > >>>>> > > >>>>> > > >>>>> > > On Tue, Feb 10, 2009 at 9:27 AM, Walter Mourão < >>>>> walter.mou...@gmail.com> >>>>> > > wrote: >>>>> > >> >>>>> > >> Hi folks, >>>>> > >> I'm using Trinidad 1.0.9. I realized that when launching a dialog >>>>> > >> (lightweight), the page containing the commandButton reloads >>>>> before >>>>> > >> launching the dialog. >>>>> > >> Is it the expected behavior ? Is there a way to avoid that ? >>>>> > >> >>>>> > >> The commandButton: >>>>> > >> <tr:commandButton text="#{messages['novo.documento']}" >>>>> > >> >>>>> action="#{captacaoController.entradaDeDadosDaCaptacaoNovoDocumentoAsDialog}" >>>>> > >> >>>>> returnListener="#{captacaoController.returnFromNovoDocumento}" >>>>> > >> partialSubmit="true" immediate="true" useWindow="true" >>>>> > >> windowHeight="600" windowWidth="600"/> >>>>> > >> >>>>> > >> Thanks in advance. >>>>> > >> >>>>> > >> Walter Mourão >>>>> > >> http://waltermourao.com.br >>>>> > >> http://arcadian.com.br >>>>> > >> http://oriens.com.br >>>>> > >> >>>>> > > >>>>> > > >>>>> >>>>> >>>>> --- >>>>> >>>>> Fugro Data Solutions Limited >>>>> Tyn y Coed >>>>> Llanrhos >>>>> Llandudno >>>>> North Wales >>>>> LL30 1SA >>>>> United Kingdom >>>>> >>>>> Tel: +44 (0)1492 563555 >>>>> Fax: +44 (0)1492 592030 >>>>> >>>>> General Email: i...@fugro-data.com >>>>> >>>>> Website: www.fugro-data.com >>>>> >>>>> This email and any attachments are confidential. They may >>>>> contain privileged information and are intended for the named >>>>> addressee(s) only. They must not be distributed without our >>>>> consent. If you are not the intended recipient, please notify us >>>>> immediately and do not disclose, distribute, or retain this >>>>> email or any part of it. Unless expressly stated, opinions in >>>>> this email are those of the individual sender, and not of Fugro >>>>> Data Solutions Ltd. We believe but do not warrant that this >>>>> e-mail and any attachments are virus free. You must therefore >>>>> take full responsibility for virus checking. Fugro Data >>>>> Solutions Ltd and its subsidiaries may monitor email traffic >>>>> data and also the content of email for the purposes of security. >>>>> This email is not intended to create legal relations. >>>>> >>>>> Fugro Data Solutions Limited is a limited company registered in >>>>> England and Wales (Reg No. 5583527) at Tyn y Coed, Pentywyn Road, >>>>> Llanrhos, Llandudno, LL30 1SA. VAT No. GB901440962. >>>>> >>>> >>> >> >> >> -- >> >> http://www.irian.at >> >> Your JSF powerhouse - >> JSF Consulting, Development and >> Courses in English and German >> >> Professional Support for Apache MyFaces >> > > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces