Well, we could move the expandAll methods back to TreeModel, that you could create your model and invoke this method and the tree would be expanded from the start.

[EMAIL PROTECTED] schrieb am 23.08.2005 11:15:03:

> ... I still can't get the tree to be completely expanded at the very
> first time it is rendered...
>
> Any ideas without having to click on a link (like the example)?

> 2005/8/23, MarcV <[EMAIL PROTECTED]>:
> This was my problem with it and this has been solved in [MYFACES-429]
> and should be fixed in last night build.
>
> 2005/8/22, Carsten Burghardt <[EMAIL PROTECTED]>:
> > Am Sunday 21 August 2005 16:30 schrieb Sean Schofield:
> > > I believe if you redirect to the same page you were on, you lose the
> > > component tree.  I'm not sure about that though so maybe someone can
> > > help clarify that point.  This would explain why your state stuff is
> > > gone, b/c it is stored in the component by default.
> > >
> > > Take a look at the source for UITreeData.  In the new code you can now
> > > provide your own TreeModel and TreeState class.  Instead of supplying
> > > TreeNode like most of the simple examples, you can use TreeModel (like
> > > the expandAll example.)  Just make the bean that provides your
> > > TreeModel have session scope.  Or you could continue to provide
> > > everything in one TreeNode and make the bean that supplies that
> > > information session scope.  I haven't tested this lately so let me
> > > know how it works out.
> >
> > I'm not sure if I understand you completely but I think this
> doesn't work, at
> > least here.
> > I provide a TreeNode with a session scope bean and use it in a
> navigation that
> > is included in all pages. When the user navigates from one page to another
> > the state is lost and all nodes are collapsed when the next page
> is displayed
> > the first time. Then he clicks somewhere on this page and the state of the
> > nodes are restored.
> > Nightly build from 08/14.
> >
> >
> > Carsten
> >
>
>
> --
> A+,
> MarcV.

Reply via email to