0

Tree, checkable and multiple; multiple is ignored

asked 2013-01-09 15:11:31 +0800

bbrand gravatar image bbrand
98 3

Are there any known issues with Tree, checkable and multiple?
This is driving me crazy:

I create a tree with checkable="true" and multiple="true" (in the zul definition) and then build the tree in POJ via the abstractmodel. Whatever I do the multiple is ignored, this results in a single selection. If I build the tree a second time without selecting anything it DOES change to multiple. This code worked with no issues in 5.0.x but now in 6.5.1 this is broke.

Anybody any ideas?? I cannot believe I am the only one with this issue ...

thanks
Ben

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-01-09 15:21:46 +0800

bbrand gravatar image bbrand
98 3

OK, found the answer hidden away.

If you create a tree with your homegrown AbstractTreeModel then the multiple on the Tree component is ignored. You need to after you have declared the AbstractTreeModel set the multiple attribute on the MODEL, and not on the tree.

- define tree myTree
- init treemodel myModel
- myModel.setMultiple(true)
- myTree.setModel(myModel)

Ben

link publish delete flag offensive edit
Your answer
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: 2013-01-09 15:11:31 +0800

Seen: 34 times

Last updated: Jan 09 '13

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