I'm using JSF2 and primefaces.
I'm doing a dynamic data table with primefaces (p:dataTable). In the managed bean , there is a list linked to this data table. Also, there is an action button that will add a new element to the table automatically.
However , when I press the button , even if I add the element to the list, no changes are .
displayed into the data table. Debugging I found out that the List<String>
field is being reinitialized again, so it will always have 1 element.
Does anyone now what I'm missing?