I have a datatable like this:
<p:dataTable id="datatableid" value="#{manageBean.employeeList}" var="employeeObj" >
                        <p:column  style="width:10%;font-weight:bold">
                            <h:outputText value="#{employeeObj.firstName}-#{employeeObj.orgEmployeeId}"/>
                        </p:column>
                        <p:columns value="#{manageBean.fetchDataList(employeeObj)}"  var="dataObj">
                            <h:outputText value="#{dataObj.status}"/>
                        </p:columns>
                    </p:dataTable>
My bean is:
public List<Attendance> fetchDataList(Employee empObj)
        {
            System.out.println("**** Inside fectch attendance data **** "+empObj.getName());
            List<Attendance> attendanceList = new ArrayList<Attendance>();
            return attendanceList;
        }
While running, in syso i am getting null pointer exception because empObj is giving null.
How can i get exact value of empObj object?
What is the correct way to pass datatable variable(var) as argument into fetchDataList method which i have used as value in columns?
