Thank you Walter,
now I'm using:
var requestQueue = TrPage.getInstance().getRequestQueue();
requestQueue.addStateChangeListener(myCallback2);
function myCallback2(state)
{
var busy = state == TrRequestQueue.STATE_BUSY;
if (!busy) {
addWidget();
}
}
Thank also this code and site:
http://code.google.com/p/facesgoodies/source/browse/trunk/src/main/webapp/all.xhtml?r=47
http://marc.info/?l=myfaces-user&m=120169463008143&w=2
Mirco
2009/8/30 Walter Mourão <[email protected]>:
> Take a look at http://myfaces.apache.org/trinidad/devguide/ppr.html (search
> for'Monitoring AJAX requests')
>
> Cheers,
>
> Walter Mourão
> http://waltermourao.com.br
> http://arcadian.com.br
> http://oriens.com.br
>
>
>
> On Fri, Aug 28, 2009 at 1:24 PM, Mirco Attocchi <[email protected]> wrote:
>>
>> Hi all (sorry for my bad english),
>> I'm adding a listener with
>> TrPage.getInstance().addDomReplaceListener(myCallback);
>>
>> myCallback listener is called for each dom change, one or more time.
>> Is possible to have a listener only for the end of PPR call (called one
>> time)?
>>
>> I'd like to use it to add a jQuery widget to the new-rendered
>> component after the PPR call.
>>
>> Thanks
>>
>> --
>> Mirco Attocchi
>
>
--
Mirco Attocchi