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

Reply via email to