protected boolean endsWithLenghtUnit(String val) {
        return val.endsWith("px") || val.endsWith("%") // most common first
                || val.endsWith("cm") || val.endsWith("mm") || val.endsWith("in")
                || val.endsWith("pt") || val.endsWith("pc")
                || val.endsWith("em") || val.endsWith("ex") || val.endsWith("ch") || val.endsWith("rem")
                || val.endsWith("vw") || val.endsWith("vh")
                || val.endsWith("vmin") || val.endsWith("vmax");
    }
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 an input/ output error occurs.
primefaces/src/main/java/org/primefaces/renderkit/CoreRenderer.java