I would like to extend primefaces column and add a custom boolean attribute. I created custom component extending the primefaces column component.
public class TColumn extends Column {
private enum PropertyKeys {
tickable
}
public boolean isTickable() {
return (java.lang.Boolean) getStateHelper().eval(PropertyKeys.tickable, false);
}
public void setTickable(boolean _tickable) {
getStateHelper().put(PropertyKeys.tickable, _tickable);
}
}
Is this sufficient or do I have to extend datatable renderer as well? Thanks.