I have the exact same question as asked in this topic: Dynamic adding text fields in JSF
To delete a text field, I used as it was said in the anwser:
<f:ajax listener="#{bean.onButtonRemoveFieldClick(field)}" immediate="true" render="@form" />
My problem is in the render="@form"
. I have a really long form, so it takes quite a while to be refreshed. And render="myHDataTable"
does not work. Have you a solution for this?