You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Stephan Weck (JIRA)" <ji...@apache.org> on 2017/06/22 07:31:00 UTC

[jira] [Created] (WICKET-6407) AjaxChannel new Type LAST or CheckGroupSelector update

Stephan Weck created WICKET-6407:
------------------------------------

             Summary: AjaxChannel new Type LAST or CheckGroupSelector update
                 Key: WICKET-6407
                 URL: https://issues.apache.org/jira/browse/WICKET-6407
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 7.7.0
            Reporter: Stephan Weck
            Priority: Minor


In our current project we use a Datatable to show user data. In certain cases this table could contain more than 50.000 entries. The handling with the wicket ajax components is quite good and works ok.
In my DataTable i have a CheckBox Panel and a CheckGroupSelector in the Header of the table. All the elements are added to a CheckGroup.
To identify which elements are selected in the Group i added an AjaxFormChoiceComponentUpdatingBehavior to the Group.
This works perfect if i select single elements in the tabel.
Now my problem:
If i have 100+ Elements in my table and i press the CheckGroupSelector for each CheckBox element the onUpdate method of the AjaxFormChoiceComponentUpdatingBehavior is triggered. For 100 elements the duration is about 3-5 seconds but if i have 1000 elements the ajax request are not ending in a realistic time.

My idea is to add a new AjaxChannel which only handles the last request, or as an probably better alternative the Ajax Behavior of the CheckGroupSelector schould be changed.
Clicking on this Checkbox should trigger only an Ajax Call, Select all checkboxes in the group and update the Model with all selected elements.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)