This '[EMAIL PROTECTED](%$ took me now a few hours and I have no plan how to
solve it.
binding="#{BatchController.statusBars[1]}" or
binding="#{BatchController.statusBars['1']}" works well.
But I need the rowIndex there to loop over my components.
Has anybody an idea how to access rowIndex in the below szenario in a
binding expression?
Desperated regards,
Michael
________________________________
From: Michael Heinen [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 6. Dezember 2006 15:04
To: MyFaces Discussion
Subject: RE: rowIndexVar usage in EL
Is this problem caused by the fact that rowIndex is of type Integer and
not of type int or String ?
If so, how can I transform it via EL ?
Michael
________________________________
From: Michael Heinen [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 6. Dezember 2006 14:34
To: MyFaces Discussion
Subject: rowIndexVar usage in EL
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