When using #{component.var.status} the var gives me a string instead of the status attribute of the actual record in the dataTable.
Code: Select all
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:composite="http://java.sun.com/jsf/composite">
<head><title>dataTable</title></head><body>
<composite:interface>
<composite:attribute name="var"/>
<composite:attribute name="value"/>
</composite:interface>
<composite:implementation>
<p:dataTable id="table" value="#{cc.attrs.value}" rowStyleClass="#{component.var.status}">
<c:set target="#{component}" property="var" value="#{cc.attrs.var}"/>
<composite:insertChildren/>
</p:dataTable>
</composite:implementation>
</body></html>