I have generating a HtmlCommandButton in backing bean. By clicking that button I want to delete a HtmlColumn from a HtmlDataTable which wa
HtmlCommandButton
HtmlColumn
HtmlDataTable
Use HtmlDataTable binding in backing bean.
<h:dataTable id="dataTable" binding="#{backingBean.tableComponent}" value="#{backingBean.someList}">
On click action
//--- SomeObject selectedObject = (SomeObject) tableComponent.getRowData(); someList.remove(selectedObject); //--