webtier@glassfish.java.net

insertAfter in ajax-response

From: <webtier_at_javadesktop.org>
Date: Mon, 30 Aug 2010 06:09:47 PDT

I could not find a way to insert some new nodes to DOM after AJAX call (in my case one panelGroup become rendered=true,after InvokeApplication phase,so it must be insertedAfter particular component in tree and then pushed as insertAfter node in ajax-response chages xml).

I look at the PartialViewContextImpl sources and found, that when visiting the tree during PartialViewContextImpl.processComponents (render phase) this method invokes PhaseAwareVisitCallback.visit() method.

In this visit method there is a block for handling render-phase, but there no logic to select what type of changes a rendered (update,insert or delete DOM-nodes on client-side). Instead it always renders only "update".

Where is the logic to select which kind of changes need to be performed?
[Message sent by forum member 'dumbuzz']

http://forums.java.net/jive/thread.jspa?messageID=481275