I am using the Tree component. Very nice!

Thanks. It's a hard one to get right, but I hope it suffices.

Question: would it be possible for the devs to rename the css from
something general, prone to name clashing (i.e. the current "css"), to
something more specific and less prone to conflict, like
"treeComponentCss" or whatever?

Yeah. I could use a scheme like I do with the wizard component:
class="wicketExtensionsWizardOuterTable". Would that work?

Out of curiosity: I noticed that the Swing tree model is being used.
Interesting approach. Is this used a lot in Wicket?

Well, we're trying to stick with general datastructures, such as List
for ListView etc. I thought the TreeModel of Swing is quite complete,
and has the additional advantage that you can reuse the model in Swing
apps - ok, not very likely anyone will actually do that. Implementing
a custom treemodel would have been easier in some ways, but I like the
fact that TreeModel and friends comes with nice functionality e.g. to
insert and delete nodes etc.

Please help: I have a very large tree to render, so I only want to hold
in memory the parts of the tree that are expanded (limiting expansion at
any given level to one branch only). I also want to make sure that all
the non-expanded branches are purged from memory.

I would say, do this in the same fashion as you would do with Swing.
Like I said above, the tree works well with model updates, so you can
let your model hold the part of the tree you actually need. Which is I
think the current state + all possible direct childs. When such a
child is expanded, you expand the tree model with the childs of the
node you just expanded. Would that work? Johan and Jonathan are the
people with extensive Swing experience here; maybe they've got some
alternative ideas on this.

As a side note. I'm still waiting for someone to step in and make this
tree or a subclass a nice DHTML/ Ajax enabled tree. There have been
several unfinished initiatives of making DHTML tree (and a couple of
custom trees that I know of that are used in projects, but that
haven't been made publicly available). We have different opions about
where the direction the tree should be heading amongst developers,
where I seem to stand alone in my argument that Swing's model is the
way to go in favor of a simplified custom model. So, it's good to read
for a change people like the fact that the tree uses the Swing model
:)

Eelco


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to