I have the following table
<f:view>
<h:form>
<h1><h:outputText value="List"/></h1>
<h:dataTable value="#{groupBean.groups}" var="item" >
<h:column>
<f:facet name="header">
<h:outputText value="Id"/>
</f:facet>
<h:button value="#{item.id}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Name"/>
</f:facet>
<h:outputText value="#{item.name}"/>
</h:column>
</h:dataTable>
</h:form>
</f:view>
and I want to use this button
<h:button value="#{item.id}" />
to know the selected item from the list
I want to get the item.name and add it to edit text in the same page , how can I do that ?