kal stevens wrote:
Could someone help me out and tell me what is wrong with this
I am trying to bind the current value through the iteration to my bean.
pgb.weekList is a List<Integer>
pgb.weekIndex is an Integer
pgb.daysOfWeek is a List<Integer>
<x:dataTable
id="listTableView"
value="#{pgb.weekList}"
binding="#{pgb.weekIndex }"
var="row">
The binding attribute must point to a method like this:
public void setXXX(UIComponent component);
In the case above, a UIData object will be passed to the method, ie the
object implementing the x:dataTable.
I have no idea what you are trying to achieve by binding to some Integer..
Regards,
Simon