Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
5
Get underlying data
posted

 

Hi,

I want to deleted a selected row in the GridView.  How can I access the underlying data object of a selected row to remove it from the backing bean's ArrayList ?  I have a cell with an image.  Clicking on the image should remove the row from the grid.

<ig:column resizable="true">

<f:facet name="header"><h:outputText value="Delete" /></f:facet>

<h:commandButton immediate="true" image="delete.gif" actionListener="#{mybean.pressDeleteButton}"/>

</ig:column>

Any idea ?

Frank