Sounds like a good idea. While we are at that we could also add a general
before- and afterUpdateJSHook="jsFunction" which will be executed
before and after the group has been updated. this way users could for instance
implement their own loading message display or just postprocess the updated
DOM-elements.

regards

Ernst

On Mon, Mar 31, 2008 at 8:06 PM, Mario Ivankovits <[EMAIL PROTECTED]> wrote:
> Hi!
>
>  What do you think about an enhancement for ppr which allows to customize
>  the DOM update of the response?
>  So, instead of the simple "domElement.innerHtml=xx" stuff, one is able
>  to hook into that and provide his/hers own dom update.
>
>  <s:pprPanelGroup componentUpdateFunction="javascript-function-name"/>
>
>  where "javascript-function-name" points to a function with the signature
>  of "function(componentDataInResponse, targetDomElement)"
>
>  All the script handling will stay the same with this solution: If there
>  is a script tag in the resulting innerHTML it will be executed.
>
>  That way I'll be able to have a function like
>  "pprResponseCopyValuesOnly()" which will not replace the whole DOM but
>  just the wanted attributes of a given element.
>
>  Later on we can also add a domUpdateFunction which will replace most of
>  the ppr.handleCallback logic ... but that is another story.
>
>  Thoughts?
>
>  Ciao,
>  Mario
>
>

Reply via email to