incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: Use af:iterator
Date Wed, 31 May 2006 16:50:04 GMT
For dynamic columns, you can't use af:iterator, only af:forEach.
If the variable is component-managed, so you can't use forEach,
it's a bit of a problem...  You could look to use the tomahawk
table and their t:columns component instead of the ADF table
in this one place.

-- Adam


On 5/31/06, Arnaud MERGEY <amergey@sunopsis.com> wrote:
> Hi,
>
> how to use af:iterator in af:table ? (I have dynamic columns)
>
> With a code like following, I have a ClassCastException on line 451 of
> TableRenderer object. I have checked source code
>  "CoreColumn column = (CoreColumn) children.get(i);" children.get return
> oracle.adf.view.faces.component.UIXIterator
>
> <af:table banding="row" value="#{list.objectInstances.arrayObject}"
> var="instance"
>         width="100%" emptyText="no data" rendered="#{list.rendered}"
>         styleClass="list">
>         <af:iterator value="#{list.tabs.arrayObject}" var="property">
>             <af:column>
> .......
>
> Another dynamic columns number in table works perfecttly with af:forEach
> but in this one I must use iterator because I use component-managed EL
> variable and af:ForEach doesn't work.
>
> Maybe my iterator usage is wrong or maybe it is an iterator bug ?
>
> thanks for help
> Arnaud
>

Mime
View raw message