> Becareful, there are the myfaces tree component(with his strucutre and
> model), and the jsf component tree ( interface form's represantion )
> Here i speak about the jsf component tree. Update this code, it's just
> an example, you have to find in jsf tree where is the myfaces component
> and then remove it.

Don't you really need to replace the tree instead of removing it?  I
thought if you just removed the tree from JSF tree that it won't get
rendered.  You're not dumping the whole JSF tree are you?  (That's not
what your code shows.)  Also, I assume you have a new model for the
new tree.

If you guys didn't know I am working on a new Tree for MyFaces.  Its
going to be much simpler to configure and hopefully more powerful.  On
Monday I am going to submit it to the CVS repository (on the trunk) as
tree2.  It will be tree2 until we are satisified with it and can get
rid of the original tree.

In the new tree all you would need to do is update the model that
underlies the tree component.  You leave the JSF tree alone.  Just
update the data you provide the tree and it will re-render.  The only
catch is that if you replace the tree data, it wouldn't know which of
the nodes was open earlier.  That would be a bit tricky but it could
be managed (possibly by an extended class or renderer.)

Stay tuned for the new tree.  I definitely need help testing it.  I
should have a pretty good server-side only example on Monday.  The
javascript version will follow shortly!

sean
 
> Adrien,

Reply via email to