Hello Mr. Bear,

Try moving all unmarshalling code ( XML -> JSF component ) to one place.  Call 
this method before the page is rendered, as well as after each change to the 
XML document.  A more sophisticated solutions might be to unmarshall once, 
allow the user to manipulate the JSF component, and use a marshall step ( JSF 
component -> XML ) to complete the "unit of work".

Dennis Byrne

>-----Original Message-----
>From: Jim the Standing Bear [mailto:[EMAIL PROTECTED]
>Sent: Thursday, June 8, 2006 11:51 AM
>To: 'MyFaces Discussion'
>Subject: how to refresh an (old) tree?
>
>I have yet another question on the old tree.  How do I get it to refresh?
>Our code is supposed to display the contents of an XML document in a tree.
>We have written our own java classes to implement both the TreeModel and
>TreeNode interfaces.  When a button is clicked, the contents of the XML
>Document changes, the tree is supposed to reflect the changes.
>
>However, the problem is that the tree displayed in the web browser doesn't
>re-render.  By looking at the log, the new XML Document gets parsed and
>processed in our own TreeModel and TreeNode implementations, however, the
>tree just never gets re-rendered and still displays the stale Document.
>
>How do I overcome that?  thanks!
>
>--
>--------------------------------------
>Standing Bear Has Spoken
>--------------------------------------
>


Reply via email to