[jboss-user] [JBoss Seam] - Re: working with a dynamically sized Datamodel with JSF/SEAM
asookazian
do-not-reply at jboss.com
Fri Sep 7 15:46:06 EDT 2007
ICEFaces:
The columns component provides a dynamic model for adding and deleting columns at run time. It uses the standard var and value attributes.
The columns component works in conjunction with the ice:dataTable. The headerClass and columnClasses defined on the dataTable component will be applied to all generated columns as it does on a single column.
Examples
| <ice:dataTable var="item" value="#{columnsBean.rowDataModel}" columnClasses="columnsColumn" >
| <ice:columns value="#{columnsBean.columnDataModel}" var="column">
| <f:facet name="header">
| <ice:outputText value="#{column}" />
| </f:facet/>
| <ice:outputText id="intCell" value="#{columnsBean.intValue}"/>
| </ice:columns>
| </ice:dataTable>
The columns component can be used in conjunction with a column component (e.g.)
<ice:dataTable var="item" value="#{columnsBean.rowDataModel}" columnClasses="columnsColumn" >
| <ice:column>
| <f:facet name="header">
| <ice:outputText value="id" />
| </f:facet/>
| <ice:outputText value="#{item.id}"/>
| </ice:column>
| <ice:columns value="#{columnsBean.columnDataModel}" var="column">
| <f:facet name="header">
| <ice:outputText value="#{column}" />
| </f:facet/>
| <ice:outputText value="#{columnsBean.intValue}"/>
| </ice:columns>
| </ice:dataTable>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082270#4082270
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082270
More information about the jboss-user
mailing list