Hi!
I'm currently stuck with a refresh/re-render problem using dynamic number of columns with rich:dataTable/rich:columns.
As you can see in the code below, I have an a4j:commandLink in the first colum to allow editing of that row. If the button is clicked, I need like to refesh ALL cells of one row that are generated by the rich:columns element (and not that easy to refernce).
How can I construct a reRender-expression that references all generated cells of the corresponding row:
<a4j:commandLink id="editRow"
actionListener="#{row.setEdit(true)}"
ajaxSingle="true"
reRender="action,????????????????????">
<rich:dataTable value="#{tableDataModel}" var="row" id="table" styleClass="data" rows="5">
<rich:column styleClass="actions" id="action">
<f:facet name="header">
Actions
</f:facet>
<a4j:commandLink rendered="#{!row.edit}" id="editRow"
actionListener="#{row.setEdit(true)}"
ajaxSingle="true"
reRender="action,????????????????????">
<h:graphicImage value="resource:///img/ico_edit.gif" styleClass="abstand"/>
<rich:toolTip for="editRow" value="Zeile bearbeiten"/>
</a4j:commandLink>
</rich:column>
<rich:columns value="#{tableDataModel.columns}"
var="column"
index="index"
id="dataColumns_#{index}"
styleClass="#{row.edit ? 'edit' : ''}">
<f:facet name="header">
<h:outputText value="#{column.columnDetail.label()}" />
</f:facet>
<h:outputText value="ColumnIndex: #{index}" />
</rich:columns>
</rich:dataTable>
This forum is deprecated please use the RichFaces User forum.