0

java generated tree dosn't work...

asked 2006-05-07 15:24:21 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3717695

By: oberinspector

backround: in my db i have a entity and a entry table where the entry table is a n:m table between entities: entity 1:n entry n:1 entity this construct is used to build up hierarchical strucures in the db...

i have overwritten Treechildren and Treeitem, where treechildren handles the entry list and Treeitem corresponds with entity.

my Item implementation has a createChildren() to create the treechildren:

class EntiyTreeItem extends Treeitem {
...
public void createChildren(){
if(entity==null && entry != null)
entity = entry.getChild();
EntityTreeChildren treechildren = new EntityTreeChildren(entity, typeImage,
deepness);
this.appendChild(treechildren);
}

my Treechildren implementaion also to create treeitems for each entry in a loop:

class EntiyTreeChildren extends Treechildren { ...
public void createChildren(){
...
while(i.hasNext()){
...
EntityTreeItem item = new EntityTreeItem(entity.getChildEntries().get(key),
typeImage, deepness);
...
this.appendChild(item);
}

The tree is rendered as expected, but is not functional...
2 problems:
1. when i click on the +/- buttons they are toggled, but the children are not expanded/closed.
2. all generated treeitems have the +/- button, even when the have no children...

i tried a onOpen()function in EntityTreeItem and also tried to add an event listener to EntityTreeItem...

do i have to care for expand/close of children with an own onOpen event listener, when i overwrite Treeitem, Treechildren?

delete flag offensive retag edit

7 Replies

Sort by ยป oldest newest

answered 2006-05-07 15:40:01 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3717706

By: henrichen

Looks like the bug reported by netwiser here:

http://sourceforge.net/tracker/index.php?func=detail&aid=1482503&group_id=152762
&atid=785191

/henri

link publish delete flag offensive edit

answered 2006-05-07 15:47:51 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3717709

By: oberinspector

looks like my problem...

it's the same in firefox and IE...

i will update to the lates nightly build and try again.

thanks a lot!

link publish delete flag offensive edit

answered 2006-05-07 16:03:35 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3717719

By: henrichen

Yes, please tell us your testing result then.

/henri


link publish delete flag offensive edit

answered 2006-05-07 16:46:39 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3717747

By: oberinspector

hmmm... still the same...

have a look at my screenshot:
http://asconet.org:8000/static/oberinspector/images/tree.gif

The Treeitem Usergroup has alway three children...

The Treeitem "Thomas" (thats me ;)... ) has again the usergroup as child. The Threeitems Jochen and Stefan have no children...

as you can see Jochen and Stefan have +/- buttens but no children and thomas has a + button even when the children are expanded...

link publish delete flag offensive edit

answered 2006-05-08 01:07:57 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3718142

By: henrichen

Thomas,

Sorry, I forget to notice you that that bug is fixed on May 7 thus you cannot test it until the new nightly is uploaded.

/henri


link publish delete flag offensive edit

answered 2006-05-08 06:37:54 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3718338

By: oberinspector

ok... no problem...

i will try it again and post my results here...

regards, thomas

link publish delete flag offensive edit

answered 2006-05-08 09:23:25 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3718508

By: oberinspector

with the latest nightly build (05.08.) everything is fine...

thanks a lot!

regards, thomas

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2006-05-07 15:24:21 +0800

Seen: 182 times

Last updated: May 08 '06

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More