p:dataTable
PDF
XLS
DOC
EML
Unknown
XML
CSV
JPG
ZIP
PNG
TXT
HEIC
SVG

Row Selection

If multiple selection is active, the rowSelect AJAX event should not target the current data table, otherwise selection with SHIFT will not work.

<h:form id="fTable">
	<p:dataTable id="dt" styleClass="jeesl-datatable"
			var="r" value="#{tableRowSelectionBean.rows}"
			selection="#{tableRowSelectionBean.selection}" selectionMode="multiple" rowKey="#{r.id}">
		<f:facet name="header">
				<j:dtHeader id="dth" title="p:dataTable">
					<p:outputPanel id="dthOp">
						<j:svg type="jeeslArrowRight" rendered="#{not empty tableRowSelectionBean.selection}"
							listener="#{tableRowSelectionBean.moveSelection()}" update="@form"/>
						</p:outputPanel>
				</j:dtHeader>
		</f:facet>
		<p:ajax event="rowSelect" listener="#{tableRowSelectionBean.selectElements()}" update=":fTable:dt:dth:dthOp"/>
		<p:column rendered="true">
			<h:outputText value="#{r.name[localeCode].lang}"/>
		</p:column>
	</p:dataTable>
</h:form>