Hi,
I'm sorry for the slow reply. I have been on vacation. You may want to
send questions to the JSFTemplating developer email list for faster
response (dev_at_jsftemplating.dev.java.net) -- you can subscribe to this
list, or view previous messages on the JSFTemplating www site.
I haven't worked with ADF faces yet, so I'm not sure exactly what the
code below does. However, if the <af:forEach> below works w/ the ADF
table, that may also work in JSFTemplating. It would need to be a real
JSF component.
If you are looking for a way for JSFTemplating to help you solve this
problem... then you're probably looking for a JSFTemplating "factory".
You can write your own factory which takes any options you want and
creates 1 or more UIComonent... including a table w/ a dynamic number of
columns. Fortunately for you... I have written such a component for the
Woodstock table and it is already part of JSFTemplating. You can either
use this directly with Woodstock, or use it as an example to create a
similar factory for ADF faces (if ADF faces doesn't already do what you
need). To find out more about this, search for "dynamic table" in the
email archives on the JSFTemplating WWW site.
Good luck!
Ken
e.dontsov wrote:
> Hi Ken!
>
> How with JSFT dinamic create contents table?
> Old example with ADF Faces:
>
> <af:table id="tc" value="#{contacts.ds}" binding="#{contacts._table}"
> bandingInterval="2" banding="row"
> var="contact" rows="10" styleClass="trhighlighter" >
>
> <f:facet name="selection">
> <af:tableSelectMany >
> </af:tableSelectMany>
> </f:facet>
>
>
> <!--<af:iterator value="#{contacts.fields}" var="spr">-->
> <af:forEach items="#{contacts.fields}" var="spr">
> <af:column >
> <f:facet name="header">
> <af:outputText value="#{spr.description}" />
> </f:facet>
> <div><af:commandLink action="#{contacts.edit_link}"><af:outputText
> value="#{contact[spr.name]}"/></af:commandLink></div>
>
> </af:column>
> </af:forEach>
> <!--</af:iterator>-->
>
> </af:table>