How to Dynamically add a row in a table in JSF?
All you need to do is basically indeed just adding an empty object to the datamodel behind the value attribute of h:dataTable. But the same empty row needs to be preserved in the subsequent request as well. If the backing bean is request scoped, then the datamodel get reloaded without the empty row. This all … Read more