The list contains view beans which offer access to more basic business objects (the elements that make up the list are part of them). My first approach was to manipulate the view beans setting a flag (like hideChildren) and let the jsp evaluate the flag. With this approach I have to reload the page, of course, and this demands that I hand over or store the list with the view beans in the browser. This is the point where I start to think this is an awful way to achieve the goal. Is there any other way of doing this?
This article might be helpful if that still seems odd to you.