Sean,
Thank you. I've a question in the TreeBacker backing
bean bundled in the sample application.
In the following line of code, isn't document the
"leaf"? I thought the last parameter of TreeNodeBase
should be set to true if it is leaf. But in the
example , it is set to false.
folderNode.getChildren().add(new
TreeNodeBase("document", "X050001", false));
I was thinking the last parameter in the following
line of code should be false, since it is not a leaf
node.
TreeNode treeData = new
TreeNodeBase("foo-folder", "Inbox", true);
Please clarify.
-----------------------------------------------
public TreeNode getTreeData()
{
TreeNode treeData = new
TreeNodeBase("foo-folder", "Inbox", true);
TreeNodeBase personNode = new
TreeNodeBase("person", "Frank Foo", true);
personNode.getChildren().add(new
TreeNodeBase("foo-folder", "Requires Foo", true));
TreeNodeBase folderNode = new
TreeNodeBase("foo-folder", "Requires Foo Reviewer",
true);
folderNode.getChildren().add(new
TreeNodeBase("document", "X050001", false));
folderNode.getChildren().add(new
TreeNodeBase("document", "X050002", false));
folderNode.getChildren().add(new
TreeNodeBase("document", "X050003", false));
personNode.getChildren().add(folderNode);
--- Sean Schofield <[EMAIL PROTECTED]> wrote:
> Client-side toggle means that the nodes can be
> expanded/collapsed
> without another post to the server. So its faster
> but requires
> javascript. Lack of client-side toggle was one of
> the main reasons we
> developed tree2.
>
> sean
>
> On 4/25/05, sureshbabu thyvalappil
> <[EMAIL PROTECTED]> wrote:
> > Sean,
> > Glad to hear back from the author of the
> component.
> > I've some more questions.
> > What was the reason behind coming up with tree2?
> > Was there a performance issue with tree?
> > I took a look into the tree2 example.
> > I'm a little bit confused about the client side
> tree
> > and server side tree in the example app. What is
> the
> > difference between them? How would one decide
> whether
> > to use client side tree or server side tree?
> > Please advise.
> >
> > --- Sean Schofield <[EMAIL PROTECTED]>
> wrote:
> > > I worked on tree2 so of course I prefer that one
> ;-)
> > > Take a look at
> > > the simple examples (app bundle) in the
> downloads
> > > section (or in
> > > latest source.) See which one you like better.
> > > Some people are happy
> > > with the original tree others have switched to
> > > tree2. Its your
> > > decision.
> > >
> > > sean
> > >
> > > On 4/24/05, sureshbabu thyvalappil
> > > <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > > I'm new to Myfaces. I see 2 types of tree
> > > component,
> > > > tree and tree2.
> > > > May I know what is the difference between
> them?
> > > > Since I'm starting from scratch, is it good to
> > > start
> > > > to with tree2?
> > > >
> > > > Thanks
> > > > Suresh
> > > >
> > > >
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Tired of spam? Yahoo! Mail has the best spam
> > > protection around
> > > > http://mail.yahoo.com
> > > >
> > >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
>
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo