What am I not doing right?
@Named("utilityController")
@RequestScoped
public class UtilityController {
    public DataModel<Result> getResultSample() {
        Result[] resultSample = new Result[11];
        //Populate the array
        return new ArrayDataModel<>(resultSample);
    }
}
In The JSF:
<h:dataTable id="sampleResult" value="#{utilityController.resultSample}" var="item" styleClass="table table-bordered table-striped table-hover table-condensed" >
    <h:column>
        <f:facet name="header">SN</f:facet>
        #{utilityController.resultSample.rowIndex}
    </h:column>
    <h:column>
        <f:facet name="header">Subject</f:facet>
        #{item.subject.name}
    </h:column>
    ....
</h:dataTable>
 
 
The rowIndex always returns 0 as can be seen above. Please can some help me pin point what I am doing wrongly
 
     
    