NPE in p:column sortBy. Version 1.0.0
Posted: 05 Mar 2010, 19:15
I created the issue in the issue tracker here:
http://code.google.com/p/primefaces/iss ... &start=100
code:
In my data model, sometimes the relationship.primeElement will return null. Primefaces code should catch this NPE and continue sorting as if elementId is null.
http://code.google.com/p/primefaces/iss ... &start=100
code:
Code: Select all
<p:dataTable var="relationship" value="#{parentHandler.allElementsInBundleSorted}"
style="width:925px;overflow:scroll;"
paginator="true"
rows="15"
dynamic="true">
<p:column sortBy="#{relationship.primeElement.elementId}">
<f:facet name="header">
<h:outputText value="PR ID" />
</f:facet>
#{relationship.primeElement.elementId}
</p:column>
</p:dataTable>