Re: Check Group selected items called from other form loses the checked values

2016-10-26 Thread ganea iulia
Thank you so much for these examples. This is great. On Thu, Oct 20, 2016 at 2:22 PM, Francois Meillet < francois.meil...@gmail.com> wrote: > Hi, > > Use a ListView. > > The model of the second form is not updated until the form is submitted. > You need to perform a submit if you want to see

Re: Check Group selected items called from other form loses the checked values

2016-10-20 Thread Francois Meillet
Hi, Use a ListView. The model of the second form is not updated until the form is submitted. You need to perform a submit if you want to see this model updated, and the correct value for tst.getCheckedTestBeans().size(). If you want to avoid the manual submit phase, you need to use Ajax.

Re: Check Group selected items called from other form loses the checked values

2016-10-20 Thread ganea iulia
Hello, Thank you for the samples. But I will explain again what I have: I have two forms on my page. In the bottom form I have a RefreshingView component, with check all checkbox in the header, and check components for each items. In the top form there is a link, where I need to get the checked

Re: Check Group selected items called from other form loses the checked values

2016-10-19 Thread Francois Meillet
Have a look at https://cwiki.apache.org/confluence/display/WICKET/Listview+with+checkboxes https://www.mkyong.com/wicket/wicket-multiple-checkboxes-example-checkboxmultiplechoice/

Re: Check Group selected items called from other form loses the checked values

2016-10-19 Thread ganea iulia
Hello, I have actually made this to work by adding this behaviour to the checkgroup: group.add(new AjaxFormChoiceComponentUpdatingBehavior() { private static final long serialVersionUID = 1654345477970524731L; @Override protected void

Check Group selected items called from other form loses the checked values

2016-10-18 Thread ganea iulia
Hi, I have 2 forms. Bottom form = testForm - I have a listview with checkboxes. As I needed a checkAll control also, I have uses CheckGroup, CheckGroupSelector and Check wicket components. Top form = testForm0 -I have only an link The use case is the following: I check one item (or all) in