This content has been marked as final.
Show 4 replies
-
1. Re: How to add Rows to datatable dynamically
ilya_shaikovsky Oct 14, 2008 6:14 AM (in response to sen.cool)just add the entity you need to the list which is the value binding for dataTable.
-
2. Re: How to add Rows to datatable dynamically
sen.cool Oct 15, 2008 10:44 AM (in response to sen.cool)Sorry i didnt get it.
right now, for adding a column to the datatable , i create an instance of HtmlColumn and add it to the children of datatable.
ie. dataTable.getChildren().add(new HtmlColumn());
I want to add a row in a similar manner.
dataTable.getChildren() gives me the list of columns. So i am able to add another column to the list.
How can i get the list of rows ?
Can Anyone help me please. Its very urgent -
3. Re: How to add Rows to datatable dynamically
joblini Oct 15, 2008 11:10 AM (in response to sen.cool)"ilya_shaikovsky" wrote:
just add the entity you need to the list which is the value binding for dataTable.
Here is an example to add a new row. The "value" attribute of the table is bound to getResultList.public List<Production> getResultList() { ArrayList<Production> list = new ArrayList<Production>(stakeholderHome.getInstance().getProductions()); list.add(new Production()); return list; }
Hope this helps! -
4. Re: How to add Rows to datatable dynamically
sen.cool Oct 16, 2008 4:01 AM (in response to sen.cool)Thanks a lot. It works.
I didnt think that way :(. Thanks for the help