Re: Checking/Dechecking a checkbox multiple choice

2016-01-12 Thread Martin Grigorov
https://sirsaula.wordpress.com/2016/01/11/wicket-using-checkboxmultiplechoice/ I guess this means you managed to make it working for your application! Good! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Jan 11, 2016 at 10:12 PM, Martin Grigorov

Re: Checking/Dechecking a checkbox multiple choice

2016-01-12 Thread smoothe19
Yes I ended up having to do the below.. basically where i initialize the variables for storing the values selected pre-select some based on if it was already toggled in the database private ArrayList evDecisionsSelect; private ArrayList mpDecisionsSelect; evDecisionsSelect = new

Re: Checking/Dechecking a checkbox multiple choice

2016-01-11 Thread Martin Grigorov
JobAdvStates state1 = new JobAdvStates(); JobAdvStates state2 = new JobAdvStates(); JobAdvStates state3 = new JobAdvStates(); List selected = new ArrayList<>(); selected.add(state1); selected.add(state3); ListModel model = new ListModel(selected); List allPossible = new ArrayList<>();

Re: Checking/Dechecking a checkbox multiple choice

2016-01-11 Thread smoothe19
Can you display an example? I essentially want to be able to have some of the checkboxes checked (based on a boolean in database) when displayed on the screne -- View this message in context:

Re: Checking/Dechecking a checkbox multiple choice

2016-01-11 Thread Martin Grigorov
Hi, In new CheckBoxMultipleChoice(id, modelOfCollection, allPossibleChoices) you have to add/remove entries to "modelOfCollection" Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Jan 11, 2016 at 8:29 PM, smoothe19 wrote: >