I have following code in my xhtml:
Code: Select all
<p:dataTable id="mailOverview"
scrollable="true" scrollHeight="250" resizableColumns="true"
var="mail"
value="#{mailOverview.mailModel}"
selection="#{mailOverview.selectedMails}" selectionMode="multiple">
<p:ajax event="rowSelect" listener="#{mailOverview.onRowSelect}"
update=":contentForm:contentDisplay :mailTableForm:mailOverview" />
But if I select one and then use shift+click on another, it doesn't work the way I expect. My expectation is that the setter is called with the first selected, the second selected, and all entries between them. But instead it is called with all entries from the beginning of the table to the second selected entry.
Is my expectation wrong or how can I achieve this?
Thanks