NPE when using p:ajax in p:dataTable

UI Components for JSF
Post Reply
Alan
Posts: 102
Joined: 25 Oct 2010, 04:45

23 Aug 2011, 17:55

My data table starts like this:

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"  
                                />
                        
I deleted the update and listener attributes to see if they were the problem. With them there or not when I click on a row, I get this exception:

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)
Any help appreciated

Secondary question -- what is the method signature for the listener? Is it "public void listener(ActionEvent evt)" ?
Netbeans 7.1, GlassFish 3.1.1, MacOS X 10.6.8, Safari, Firefox

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 50 guests