How to Dynamically add a row in a table in JSF?
In my application i need to add a row on a click of a button and this button will be in all the rows. Need help to do this? Item Class public class Item { public Item() { } private String value; public Item(String value) { this.value = value; } public void setValue(String value) { this.value = value; } public String getValue() { return value; } } Manage Bean Class public class MyMB { private List<Item> list; public void addItem() { // JSF action method list.add(new Item("Default")); Iterator<Item> iterator = list.iterator(); while(iterator.hasNext()) { Item item = (Item)iterator.next(); System