I spent sometime on this issue. I wonder if anybody knowing PPR internal
details can explain me how it should work.
I noticed that calling addPartialTarget ends up in adding a component to
a list in RequestContextImpl.
But any PPR rendering then looks for a current target in
PartialPageContextImpl (_currentTargetStack). No target, no rendering.
That's why my XDR response looks nearly empty.
I guess I miss something. Any help is appreciated.
-- Renzo
Renzo Tomaselli wrote:
Hi, can anybody suggest a way to PPR a modal tr:panelPopup ? There is
no reason to render the entire page, since it's already there and the
popup just overwrites it.
I tried to catch the popup component through binding, then I used
RequestContext.getCurrentInstance().addPartialTarget(component).
Candidate buttons on the page have partialSubmit="true", but nothing
appears, although a PPR cycle is fired and the above call is performed.
Indeed response XDR contains some error message - without any explicit
text - but the popup code is entirely missing.
The overall thing works fine if the entire page is rendered.