You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Hans Sowa <ha...@gmail.com> on 2006/02/22 13:07:45 UTC

Issues with Tree2 - Heap Space Probleme - HTML Code

Hi

I need to realize a tree which can have about 30.000 nodes and every node is
clickable. I know this is a lot but this is my requirement from the
business. I have now the situation that it is not possible at the moment so
we have a workaround: Up 250 nodes we will show a scrollable list instead of
the tree. But for the future I need a tree solution.

I have now two issues with the tree2.
1. The html code which is created is very large and the browser runs in
trouble.
2. There is a heap space problem in MyFaces for a certain number of nodes (>
250).

My actually questions are
Is there a solution for such large trees? Should I use an other tree instead
of tree2? Is there anybody who has a similar problem and solved it?

Thanks in advance.

--
mfg Hans Sowa
mailto:hanssowa@gmail.com

Re: Issues with Tree2 - Heap Space Probleme - HTML Code

Posted by Sean Schofield <se...@gmail.com>.
How much heap space do you have available?  You probably want to
increase beyond the standard amount (64 M I think is the default?)  I
would also recommend that you consider populating your tree model
dynamically.  There's no need to have all 30,000 nodes sitting in the
memory all the time.

Sean

On 2/22/06, Hans Sowa <ha...@gmail.com> wrote:
> Hi
>
> Thanks, I know that I can you clientSideToggle but this doesn't solve my
> problem with the heap space. I tried it but it seams myfaces has problem
> with too much nodes.
>
> 2006/2/22, Onur Tokan < otokan@gmail.com>:
> > Make the tree2 attribute to clientSideToggle="false".
> >
> > Regards,
> > Onur
> >
> > On 2/22/06, Hans Sowa <ha...@gmail.com> wrote:
> > > Hi
> > >
> > > I need to realize a tree which can have about 30.000 nodes and every
> node is
> > > clickable. I know this is a lot but this is my requirement from the
> > > business. I have now the situation that it is not possible at the moment
> so
> > > we have a workaround: Up 250 nodes we will show a scrollable list
> instead of
> > > the tree. But for the future I need a tree solution.
> > >
> > > I have now two issues with the tree2.
> > > 1. The html code which is created is very large and the browser runs in
> > > trouble.
> > > 2. There is a heap space problem in MyFaces for a certain number of
> nodes (>
> > > 250).
> > >
> > > My actually questions are
> > > Is there a solution for such large trees? Should I use an other tree
> instead
> > > of tree2? Is there anybody who has a similar problem and solved it?
> > >
> > > Thanks in advance.
> > >
> > > --
> > > mfg Hans Sowa
> > > mailto:hanssowa@gmail.com
> >
>
>
>
> --
>
> mfg Hans Sowa
> mailto: hanssowa@gmail.com

Re: Issues with Tree2 - Heap Space Probleme - HTML Code

Posted by Hans Sowa <ha...@gmail.com>.
Hi

Thanks, I know that I can you clientSideToggle but this doesn't solve my
problem with the heap space. I tried it but it seams myfaces has problem
with too much nodes.

2006/2/22, Onur Tokan <ot...@gmail.com>:
>
> Make the tree2 attribute to clientSideToggle="false".
>
> Regards,
> Onur
>
> On 2/22/06, Hans Sowa <ha...@gmail.com> wrote:
> > Hi
> >
> > I need to realize a tree which can have about 30.000 nodes and every
> node is
> > clickable. I know this is a lot but this is my requirement from the
> > business. I have now the situation that it is not possible at the moment
> so
> > we have a workaround: Up 250 nodes we will show a scrollable list
> instead of
> > the tree. But for the future I need a tree solution.
> >
> > I have now two issues with the tree2.
> > 1. The html code which is created is very large and the browser runs in
> > trouble.
> > 2. There is a heap space problem in MyFaces for a certain number of
> nodes (>
> > 250).
> >
> > My actually questions are
> > Is there a solution for such large trees? Should I use an other tree
> instead
> > of tree2? Is there anybody who has a similar problem and solved it?
> >
> > Thanks in advance.
> >
> > --
> > mfg Hans Sowa
> > mailto:hanssowa@gmail.com
>



--
mfg Hans Sowa
mailto:hanssowa@gmail.com

Re: Issues with Tree2 - Heap Space Probleme - HTML Code

Posted by Hans Sowa <ha...@gmail.com>.
Thanks a lot.

First the heap space problem just appears in the client side handling of the
tree if I use it in the server side handling there is no heapspace problem.
So, I have now a logic which change to the server side logik if there are
too many nodes.

But I have an other issue. I would like to have following behavior:
A user open a couple of nodes which exists in the same path of the tree.
Then the user open a node in a new path. For this case I would like to have
that the nodes in the other path are closed. Is this behavior possible for
the tree 2?

Thanks in advance.



2006/2/22, Onur Tokan <ot...@gmail.com>:
>
> Hi,
>
> You can try disable extension filter, and add necessary resources to
> you web root which are avaible in the jar file. Because extension
> filter adds it's filter URL to every resouces in the html.
>
> Regards,
> Onur
>
> On 2/22/06, Hans Sowa <ha...@gmail.com> wrote:
> > Hm,
> >
> > ok, but why do I have the heap space problem because I also have it if I
> use
> > the server-side toggle. I can create the 26.000 nodes without any heap
> space
> > problems but then if the tree2 controls tries to create the visible part
> of
> > the tree I get a heap space problem. Can you imagine what the problem
> is?
> >
> > 2006/2/22, Sean Schofield <se...@gmail.com>:
> > > The tree already ignores nodes that are not expanded (in the
> > > server-side toggle.)  Its only the server-side toggle that does not
> > > ignore them and that's because it can't.  It needs the whole tree b/c
> > > it needs to be able to show any/all nodes the user might decide to
> > > expand.
> > >
> > > Sean
> > >
> > > On 2/22/06, Hans Sowa <ha...@gmail.com> wrote:
> > > > Hi
> > > >
> > > > My heapspace configuration is min 32 max 128.
> > > >
> > > > Maybe it is a good idea to partially load the data. This should
> solve
> > the
> > > > problem with the heap space. But if I use the server side toogle I
> think
> > it
> > > > would be a good idea if the tree component would ignore the nodes
> which
> > are
> > > > not shown in the tree. Maybe this is an idea for a future
> enhancement.
> > > >
> > > > The other issue is the html code. Is there a possiblity to decrease
> the
> > > > htmloutput. The html code for one node is really large and a big
> problem
> > for
> > > > the browser (especially for IE).
> > > >
> > > > Thanks in advance.
> > > >
> > > >
> > > > 2006/2/22, Mario Ivankovits <ma...@ops.co.at>:
> > > > > Hi!
> > > > > > Eventually I envision an Ajax version of the tree2 component.
> > > > > >
> > > > > +1
> > > > > It will definitely be great to have a ajaxed tree2.
> > > > >
> > > > >
> > > > > Ciao,
> > > > > Mario
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > mfg Hans Sowa
> > > > mailto:hanssowa@gmail.com
> > >
> >
> >
> >
> > --
> >
> > mfg Hans Sowa
> > mailto:hanssowa@gmail.com
>



--
mfg Hans Sowa
mailto:hanssowa@gmail.com

WAS 6.0.2.7 & RSA 6.0.11 & myfaces

Posted by sia far <si...@hotmail.com>.
Hello All:

I have been trying to run sample applications for myfaces in Rational 
Software Architect using Websphere 6.0.2.7. I get the following message in 
most of the pages I run:

"com.sun.faces.saveStateFieldMarker"

which makes the page useless as nothing works after that. However, if I 
choose to save the state on the server side, things are okay. It is only 
when things are stored on the client sides. Any ideas why this is happening?



Re: Issues with Tree2 - Heap Space Probleme - HTML Code

Posted by Onur Tokan <ot...@gmail.com>.
Hi,

You can try disable extension filter, and add necessary resources to
you web root which are avaible in the jar file. Because extension
filter adds it's filter URL to every resouces in the html.

Regards,
Onur

On 2/22/06, Hans Sowa <ha...@gmail.com> wrote:
> Hm,
>
> ok, but why do I have the heap space problem because I also have it if I use
> the server-side toggle. I can create the 26.000 nodes without any heap space
> problems but then if the tree2 controls tries to create the visible part of
> the tree I get a heap space problem. Can you imagine what the problem is?
>
> 2006/2/22, Sean Schofield <se...@gmail.com>:
> > The tree already ignores nodes that are not expanded (in the
> > server-side toggle.)  Its only the server-side toggle that does not
> > ignore them and that's because it can't.  It needs the whole tree b/c
> > it needs to be able to show any/all nodes the user might decide to
> > expand.
> >
> > Sean
> >
> > On 2/22/06, Hans Sowa <ha...@gmail.com> wrote:
> > > Hi
> > >
> > > My heapspace configuration is min 32 max 128.
> > >
> > > Maybe it is a good idea to partially load the data. This should solve
> the
> > > problem with the heap space. But if I use the server side toogle I think
> it
> > > would be a good idea if the tree component would ignore the nodes which
> are
> > > not shown in the tree. Maybe this is an idea for a future enhancement.
> > >
> > > The other issue is the html code. Is there a possiblity to decrease the
> > > htmloutput. The html code for one node is really large and a big problem
> for
> > > the browser (especially for IE).
> > >
> > > Thanks in advance.
> > >
> > >
> > > 2006/2/22, Mario Ivankovits <ma...@ops.co.at>:
> > > > Hi!
> > > > > Eventually I envision an Ajax version of the tree2 component.
> > > > >
> > > > +1
> > > > It will definitely be great to have a ajaxed tree2.
> > > >
> > > >
> > > > Ciao,
> > > > Mario
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > mfg Hans Sowa
> > > mailto:hanssowa@gmail.com
> >
>
>
>
> --
>
> mfg Hans Sowa
> mailto:hanssowa@gmail.com

Re: Issues with Tree2 - Heap Space Probleme - HTML Code

Posted by Hans Sowa <ha...@gmail.com>.
Hm,

ok, but why do I have the heap space problem because I also have it if I use
the server-side toggle. I can create the 26.000 nodes without any heap space
problems but then if the tree2 controls tries to create the visible part of
the tree I get a heap space problem. Can you imagine what the problem is?

2006/2/22, Sean Schofield <se...@gmail.com>:
>
> The tree already ignores nodes that are not expanded (in the
> server-side toggle.)  Its only the server-side toggle that does not
> ignore them and that's because it can't.  It needs the whole tree b/c
> it needs to be able to show any/all nodes the user might decide to
> expand.
>
> Sean
>
> On 2/22/06, Hans Sowa <ha...@gmail.com> wrote:
> > Hi
> >
> > My heapspace configuration is min 32 max 128.
> >
> > Maybe it is a good idea to partially load the data. This should solve
> the
> > problem with the heap space. But if I use the server side toogle I think
> it
> > would be a good idea if the tree component would ignore the nodes which
> are
> > not shown in the tree. Maybe this is an idea for a future enhancement.
> >
> > The other issue is the html code. Is there a possiblity to decrease the
> > htmloutput. The html code for one node is really large and a big problem
> for
> > the browser (especially for IE).
> >
> > Thanks in advance.
> >
> >
> > 2006/2/22, Mario Ivankovits <ma...@ops.co.at>:
> > > Hi!
> > > > Eventually I envision an Ajax version of the tree2 component.
> > > >
> > > +1
> > > It will definitely be great to have a ajaxed tree2.
> > >
> > >
> > > Ciao,
> > > Mario
> > >
> > >
> >
> >
> >
> > --
> >
> > mfg Hans Sowa
> > mailto:hanssowa@gmail.com
>



--
mfg Hans Sowa
mailto:hanssowa@gmail.com

Re: Issues with Tree2 - Heap Space Probleme - HTML Code

Posted by Sean Schofield <se...@gmail.com>.
The tree already ignores nodes that are not expanded (in the
server-side toggle.)  Its only the server-side toggle that does not
ignore them and that's because it can't.  It needs the whole tree b/c
it needs to be able to show any/all nodes the user might decide to
expand.

Sean

On 2/22/06, Hans Sowa <ha...@gmail.com> wrote:
> Hi
>
> My heapspace configuration is min 32 max 128.
>
> Maybe it is a good idea to partially load the data. This should solve the
> problem with the heap space. But if I use the server side toogle I think it
> would be a good idea if the tree component would ignore the nodes which are
> not shown in the tree. Maybe this is an idea for a future enhancement.
>
> The other issue is the html code. Is there a possiblity to decrease the
> htmloutput. The html code for one node is really large and a big problem for
> the browser (especially for IE).
>
> Thanks in advance.
>
>
> 2006/2/22, Mario Ivankovits <ma...@ops.co.at>:
> > Hi!
> > > Eventually I envision an Ajax version of the tree2 component.
> > >
> > +1
> > It will definitely be great to have a ajaxed tree2.
> >
> >
> > Ciao,
> > Mario
> >
> >
>
>
>
> --
>
> mfg Hans Sowa
> mailto:hanssowa@gmail.com

Re: Issues with Tree2 - Heap Space Probleme - HTML Code

Posted by Hans Sowa <ha...@gmail.com>.
Hi

My heapspace configuration is min 32 max 128.

Maybe it is a good idea to partially load the data. This should solve the
problem with the heap space. But if I use the server side toogle I think it
would be a good idea if the tree component would ignore the nodes which are
not shown in the tree. Maybe this is an idea for a future enhancement.

The other issue is the html code. Is there a possiblity to decrease the
htmloutput. The html code for one node is really large and a big problem for
the browser (especially for IE).

Thanks in advance.

2006/2/22, Mario Ivankovits <ma...@ops.co.at>:
>
> Hi!
> > Eventually I envision an Ajax version of the tree2 component.
> >
> +1
> It will definitely be great to have a ajaxed tree2.
>
>
> Ciao,
> Mario
>
>


--
mfg Hans Sowa
mailto:hanssowa@gmail.com

Re: Issues with Tree2 - Heap Space Probleme - HTML Code

Posted by Sean Schofield <se...@gmail.com>.
TreeWalker helps us get a good way there.  We can provide a custom
tree walker that renders the tree from a specified point (not
necessarily starting at the root.)

Sean

On 2/22/06, Mario Ivankovits <ma...@ops.co.at> wrote:
> Hi!
> > Eventually I envision an Ajax version of the tree2 component.
> >
> +1
> It will definitely be great to have a ajaxed tree2.
>
>
> Ciao,
> Mario
>
>

Re: Issues with Tree2 - Heap Space Probleme - HTML Code

Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi!
> Eventually I envision an Ajax version of the tree2 component. 
>   
+1
It will definitely be great to have a ajaxed tree2.


Ciao,
Mario


Re: Issues with Tree2 - Heap Space Probleme - HTML Code

Posted by Sean Schofield <se...@gmail.com>.
As Onur suggested the server-side toggle is the way to go for large
trees.  Eventually I envision an Ajax version of the tree2 component. 
Some of the recent tree2 changes reflect a step in that direction.

Sean

On 2/22/06, Onur Tokan <ot...@gmail.com> wrote:
> Make the tree2 attribute to clientSideToggle="false".
>
> Regards,
> Onur
>
> On 2/22/06, Hans Sowa <ha...@gmail.com> wrote:
> > Hi
> >
> > I need to realize a tree which can have about 30.000 nodes and every node is
> > clickable. I know this is a lot but this is my requirement from the
> > business. I have now the situation that it is not possible at the moment so
> > we have a workaround: Up 250 nodes we will show a scrollable list instead of
> > the tree. But for the future I need a tree solution.
> >
> > I have now two issues with the tree2.
> > 1. The html code which is created is very large and the browser runs in
> > trouble.
> > 2. There is a heap space problem in MyFaces for a certain number of nodes (>
> > 250).
> >
> > My actually questions are
> > Is there a solution for such large trees? Should I use an other tree instead
> > of tree2? Is there anybody who has a similar problem and solved it?
> >
> > Thanks in advance.
> >
> > --
> > mfg Hans Sowa
> > mailto:hanssowa@gmail.com
>

Re: Issues with Tree2 - Heap Space Probleme - HTML Code

Posted by Onur Tokan <ot...@gmail.com>.
Make the tree2 attribute to clientSideToggle="false".

Regards,
Onur

On 2/22/06, Hans Sowa <ha...@gmail.com> wrote:
> Hi
>
> I need to realize a tree which can have about 30.000 nodes and every node is
> clickable. I know this is a lot but this is my requirement from the
> business. I have now the situation that it is not possible at the moment so
> we have a workaround: Up 250 nodes we will show a scrollable list instead of
> the tree. But for the future I need a tree solution.
>
> I have now two issues with the tree2.
> 1. The html code which is created is very large and the browser runs in
> trouble.
> 2. There is a heap space problem in MyFaces for a certain number of nodes (>
> 250).
>
> My actually questions are
> Is there a solution for such large trees? Should I use an other tree instead
> of tree2? Is there anybody who has a similar problem and solved it?
>
> Thanks in advance.
>
> --
> mfg Hans Sowa
> mailto:hanssowa@gmail.com