Yixing,

tree2 is a standard JSF component.  It requires a commandLink or
commandButton to post back to itself so it can interpret events, etc. 
If you want the tree to automatically update itself when the data
refreshes then you will need to add Ajax support (that's something
we're looking at in the future.)

You could add a commandLink/Button outside of the tree.  (Maybe it
could say "Refresh")

Hope that helps,

sean

ps. Please post to *only* the user list.  Questions from users about
how to use components belong here and not on the dev list.  The dev
list is reserved for discussion amongst developers about changes to
the code, etc.

On 12/29/05, Yixing Ma <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi all,
>
>
>
> I have a quick question about tree2 component.  How to refresh the tree
> without clicking on the tree? Is there any apis to do that?
>
>
>
> The purpose is I have the tree on the left side of the page, and some data
> entry boxes on the right side. When I hit the submit button on the right
> side, I want the tree to be automatically refreshed to reflect the change.
>
>
>
> I'm using myfaces 1.0.9.
>
>
>
> Thanks for any help or ideas,
>
>
>
> Yixing Ma

Reply via email to