I have created a jsf file, the most important part is here:
h:dataTable value="#{gatekeeperStatusBean.list}" var="item"
styleClass="table-data"
headerClass="table-header"
rowClasses="table-odd-row,table-even-row">
<h:column><f:facet name="header">ID</f:facet>#{item.id}</h:column>
<h:column><f:facet name="header">Name</f:facet>#{item.name}</h:column>
<h:column><f:facet name="header">Status</f:facet>
<c:if test="#{gatekeeperStatusBean.isLogged(item)}">
<strong>LOGGED</strong>
</c:if>
<c:if test="#{not gatekeeperStatusBean.isLogged(item)}">
<strong>LOGGED OUT</strong>
</c:if>
</h:column>
</h:dataTable>
In the third column "Status" I wanted to print out whether the gatekeeper is logged in the database or not. All the other columns ID with #{item.id} and Name with #{item.name} are printing valid, non-null values. When I want to fill the status using the method #{gatekeeperStatusBean.isLogged(item)} it is apparently passing a NULL item value to the Java method. Can someone explain why is this happening?