Need some help selecting the PrimeFaces p:dataTable
1st row on page load, here's my code so far:
<p:dataTable id="dtbList" value="#{Controller.items}" var="item" widgetVar="dataTableList" lazy="true"
selection="#{Controller.selectedValue}" rowKey="#{item.key}"
scrollable="true" scrollHeight="133">
<p:ajax event="rowSelectRadio" listener="#{Controller.handleSelectList}" update="dtbList"
oncomplete="resetScroll();"/>
...
...
...
</p:dataTable>
I've tried using ajax event to no avail
<p:ajax event="page" onsuccess="PF('dataTableList').selectRow(0);"/>
Wondering where I did wrong.