Re: Select All Non-Disabled Items in CheckBoxMultipleChoice
What Igor suggest is that you don't try to find the disabled checkboxes. You know up front by the logic you have implemented to decide that a checkbox is actually disabled. Use that same logic to update the model of all checkboxes that are not disabled. And have it update those modelsso that the checkboxes get the selected state. Thijs On 24-2-2011 16:21, eugenebalt wrote: When I try to call isDisabled() from another location, I get the error "The method isDisabled(E,int,String) is not visible". - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Select All Non-Disabled Items in CheckBoxMultipleChoice
When I try to call isDisabled() from another location, I get the error "The method isDisabled(E,int,String) is not visible". -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Select-All-Non-Disabled-Items-in-CheckBoxMultipleChoice-tp3319897p3322799.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Select All Non-Disabled Items in CheckBoxMultipleChoice
I don't understand this answer. Can you expand? When creating the CheckBoxMultipleChoice for the very first time, I override isDisabled(...). But this is different, I have the "Select All" button on which I am defining Ajax Updating Behavior. How do I get access to CheckBoxMultipleChoice.isDisabled(..) from there? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Select-All-Non-Disabled-Items-in-CheckBoxMultipleChoice-tp3319897p3321635.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Select All Non-Disabled Items in CheckBoxMultipleChoice
your code figures out if they are disabled or not, so use the code to filter your add... -igor On Tue, Feb 22, 2011 at 1:06 PM, eugenebalt wrote: > > Can anyone help with this? Thanks > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Select-All-Non-Disabled-Items-in-CheckBoxMultipleChoice-tp3319897p3320046.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Select All Non-Disabled Items in CheckBoxMultipleChoice
Can anyone help with this? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Select-All-Non-Disabled-Items-in-CheckBoxMultipleChoice-tp3319897p3320046.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Select All Non-Disabled Items in CheckBoxMultipleChoice
I have a CheckBoxMultipleChoice which has some disabled checkboxes (I was able to achieve that by overriding "isDisabled(final Object object, int index, String selected)" on the CheckBoxMultipleChoice). Now, I have a 'Select All' button which needs to select all *enabled* checkboxes in that field. How do I find out which checkboxes are enabled, so I can select them? If I wanted to select all checkboxes, regardless of enabled/disabled, I could do ((Collection)umcRolesCheckBoxes.getDefaultModelObject()).addAll(umcRolesCheckBoxes.getChoices()); Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Select-All-Non-Disabled-Items-in-CheckBoxMultipleChoice-tp3319897p3319897.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org