Primary dynamic columns - how to set an identifier?

I have a dataTable with dynamic columns:

<p:columns value="#{dashboardEditionBean.columns}" var="column" columnIndexVar="colIndex" sortBy="#{deviceMock[column.property]}" filterBy="#{deviceMock[column.property]}">
        <f:facet name="header">
             <h:outputText value="#{column.header}" />
        </f:facet>
        <h:outputText value="#{deviceMock[column.property]}" />
</p:columns>

I wonder if there is a way to set the identifier of each column? I need this so that I can get the column id in the bean base. I know that PrimeFaces generates some identifier for these columns and adds a column index to them, but since I want to be able to reorder these columns and save the changes, I need additional descriptive information in the bean database (user id or something else )

+4
source share

All Articles