Code: Select all
<p:dataTable
id="llDataTable"
rows="#{listLocations.pageSize}"
value="#{listLocations.locationList}"
var="loc"
selection="#{listLocations.selected}"
selectionMode="single"
emptyMessage="No Locations Found"
>
<p:ajax event="rowSelect"
/>
Code: Select all
INFO: java.lang.NullPointerException
java.lang.NullPointerException
at org.primefaces.renderkit.CoreRenderer.decodeBehaviors(CoreRenderer.java:401)
at org.primefaces.component.inputtext.InputTextRenderer.decode(InputTextRenderer.java:36)
at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:787)
at javax.faces.component.UIInput.decode(UIInput.java:757)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1181)
at javax.faces.component.UIInput.processDecodes(UIInput.java:662)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
at javax.faces.component.UIData.iterate(UIData.java:1952)
at javax.faces.component.UIData.processDecodes(UIData.java:1161)
at org.primefaces.component.datatable.DataTable.processDecodes(DataTable.java:542)
at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:506)
at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
at javax.faces.component.UIData.visitTree(UIData.java:1411)
Secondary question -- what is the method signature for the listener? Is it "public void listener(ActionEvent evt)" ?