1

Disable listbox with checkmark=true and multiple=true

asked 2014-01-07 14:04:02 +0800

enixser gravatar image enixser
185 3

Hi,

I'm using a listbox in my application with checkmark=true and multiple=true. I want to disable this listbox from within my controller code. I tried listbox.setDisabled(true), but this had no effect. Every chechmark remains active.

Then I tried to iterate over the items in the listbox and call setDisabled(true) for each item. This disables all the items, but now the selectAll checkmark in the header remains active.

How can I completely disable the listbox? Or how can I get access to the header checkmark to disable it?

Best regards, Ralf.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
4

answered 2014-01-16 17:53:55 +0800

sitansu gravatar image sitansu
2254 13
http://java91.blogspot.in...

You just try it:

model.setMultiple(true);

See (docs)

link publish delete flag offensive edit

Comments

1

Unfortunately, I do not use a model. The code that fills the listbox is a bit older :-) I create the listitems in my controller and add them to the listbox by setting the parent of the listitems.

enixser ( 2014-01-23 07:08:25 +0800 )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
1 follower

RSS

Stats

Asked: 2014-01-07 14:04:02 +0800

Seen: 26 times

Last updated: Jan 16 '14

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