Hi Jerry and Brian,
I have multivalue lookup almost working fully now. There are three things I am trying to finish up
1. Logic for keeping return selected stay active in case of server side paging where content of other pages are not available.
2. On rich table with no server paging 'select all' is not selecting from hidden pages (have to play around with the datatable library to figure this one out)
3. On rich table with server paging, I see that the 'select all' makes a call to the controller method and reloads the collection component and that causes the datatable to make a second call because of ajaxSource option. If I set the ajaxReturnType to 'update-none' for select all, the component is removed from the view and subsequent paging requests throw NPE. This is the one I need a little help with. I want to call the controller method on 'select all' but not have the datatable make an unnecessary call back to the server. Any ideas on how this can be done.
On number 2 are you saying when the page occurs the items are not selected?
For 3, I would say the select all should not refresh the collection. This might be an issue with krad.request.js. When update-none is set, it should not look to refresh anything. We have used update-none with Ajax calls that are made from custom script, but maybe not through the action. I would look into making it not refresh when this option is selected.
On number 2 Rich table only keeps the visible page content in the DOM, so select all needs to find the hidden (from dom) checkboxes and mark them selected. I am looking into in data table http://datatables.net/plug-ins/api#fnGetHiddenNodes for this issue.
On number 3. Are you saying it might be a problem with krad.request.js and you would be looking into it or are you suggesting that I should look in that direction? I am sorry I am not very clear about that.