Michael,
> <rm:statusBar binding="#{BatchController.statusBars[rowIndex]}" ...
If t:dataList is like dataTable, then you can not do this. There will be
only one statusBar component created, which will render itself once for
each row. Therefore, you can't do a separate binding for each row.
Can anyone who is more familiar with t:dataList confirm/deny my
suspicions here?
Regards,
Jeff Bischoff
Kenneth L Kurz & Associates, Inc.
Michael Heinen wrote:
I want to use the rowIndexVar of a dataList in the binding attribute of
a another custom component via EL.
I get always a PropertyNotFoundException for this var.
snippet;
<t:dataList var="batch"
value="#{BatchController.batches}"
rowIndexVar="rowIndex"
layout="simple">
<t:outputText value="Test + #{rowIndex}"/>
<rm:statusBar binding="#{BatchController.statusBars[rowIndex]}" ...
javax.faces.el.PropertyNotFoundException: Index is null: rowIndex
But rowIndex is not null.
if I comment out my custom rm:tag then the rowIndex values are rendered
via t:outputText.
BatchController.getStatusBars returns a List.
What's going wrong here?
Michael