public static String getDynamicColumnValueAsString(UIComponent component) {
        org.primefaces.component.api.UIColumn column =
                ComponentTraversalUtils.closest(org.primefaces.component.api.UIColumn.class, component);
        UITable table =
                ComponentTraversalUtils.closest(UITable.class, (UIComponent) column);

        return table.getConvertedFieldValue(FacesContext.getCurrentInstance(), column);
    }
GitHub #7763 Renders an in memory UIComponent and updates its ID with an index.
For example id="form:test" becomes id="form:test:0".

@param context the {@link FacesContext}.
@param component the {@link UIComponent} to render.
@param index the index number to append to the ID
@throws IOException if any IO error occurs
primefaces/src/main/java/org/primefaces/util/ComponentUtils.java