Reputation: 78
I've got dynamic columns. Some have Inputfields others don't. Why do I have to set the Id of an Inputfield if I don't want to render it?
<rich:columns value="#{columnBean.columns}" var="column" index="ind" id="#{column.id}">
<f:facet name="header">
<h:inputText id="#{column.inputFilterId}" value="#{otherBean.filterValue[column.filterBy]}" onkeyup="filterKeyUp(event)" onclick="Event.stop(event);" />
</f:facet>
<h:outputText value="#{columnBean.lineItemHandler[line]}" rendered="#{columnBean.curCol[column.id]}"/>
</rich:columns>
I'm using JSF 1.2 and Richfaces 3.3.3 Final
Upvotes: 0
Views: 332
Reputation: 78
I fixed it, just put a unique Id-Value from my Column Bean.
The better solution is to do this: https://stackoverflow.com/a/18358949/5146922
THX BalusC
Upvotes: 0