You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Yixing Ma <yi...@interfacemgmt.net> on 2005/12/29 19:22:11 UTC

tree2 question

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


Re: tree2 question

Posted by Sean Schofield <se...@gmail.com>.
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 <yi...@interfacemgmt.net> 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