Joseph Foster wrote:
So I need to modify the DOM of a document and according to the docs the
safe way to do this is to be sure to use the UpdateManager of the Canvas
and add things to the RunnableQueue that it maintains.

My problem is this:
Whenever I attempt to get the UpdateManager from the canvas-
canvas.getUpdateManager();
It is null.  Checking again in the documentation I see that the
UpdateManager in not provided until the first rendering is complete and
it says to use a GVTTreeRenderingListener to determine when the
rendering is finished.  Ok, I did that and had my getUpdateManager()
wait until the rendering complete event had happened.  Unfortunately it
is still null.

Is this a known issue?  Do I need to set the canvas to DYNAMIC update
type to get the UpdateManager?

In short yes, I've added the following documentation to getUpdate Manager:


     * An UpdateManager is only created for Dynamic documents.  By
     * default the Canvas attempts to auto detect dynamic documents by
     * looking for script elements and/or event attributes in the
     * document, if it does not find these it assumes the document is
     * static.  Callers of this method will almost certainly want to
     * call setDocumentState(ALWAYS_DYNAMIC) before loading the document
     * so that an UpdateManager is always created (even for apparently
     * static documents).



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to