I have added a new XSnippet, the viewPanelHelper. The code helps to keep the selection of the selected documents in a view panel even if pager is used or categories are expand or collapsed.
It is not required to modify the view: Only the script and the hidden field must be added to the facets section of the panel and the CSJS class „viewPanelHelper“ must be added to the XPage (the class is loaded only once and can be stored in a separate CSJS resource file).
The selected documents are stored in the hidden field „viewPanelSelectedIds“.
Tested in IE 9 and FF 15 – 17.