[ 
https://issues.apache.org/jira/browse/WICKET-6407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16059927#comment-16059927
 ] 

Martin Grigorov commented on WICKET-6407:
-----------------------------------------

I cannot imagine how AjaxChannel.LAST could be implemented.
Currently the group selector fires 'click' event for each row checkbox, this 
fires the JS event listeners (for each row checkbox!). Let's say we do 
something like what AjaxChannel.DROP does. The problem is that we cannot know 
whether all ignored JS event listeners do the same, i.e. whether all of them 
collect their data (AjaxFormComponentUpdatingBehavior), or collect something 
custom with AjaxRequestAttributes#getExtraParameters(), or whether collect more 
data with AjaxRequestAttributes#setChildrenSelector(), ... All we would know is 
what the last JS event listener (for the last row checkbox) does. But we cannot 
assume whether all previous do the same for their respective checkboxes.

> 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)

Reply via email to