This content has been marked as final.
Show 4 replies
-
1. Re: generate datatable from java code
ilya_shaikovsky Jan 15, 2009 9:35 AM (in response to ajanz)HtmlDataTable table = new HtmlDataTable(); HtmlOutputText text = new HtmlOutputText(); text.setValue("value"); table.getFacets().put("header", text);
-
2. Re: generate datatable from java code
ajanz Jan 15, 2009 9:45 AM (in response to ajanz)hm...quite simple ok....thanks
now i want to add content
i useHtmlOutputText colvalue = new HtmlOutputText(); colvalue.setValue("TEXT"); col.getChildren().add(colvalue); table.getChildren().add(col);
but only the column header appears.
table.rows is set to 10.
is my code wrong? -
3. Re: generate datatable from java code
nbelaevski Jan 15, 2009 9:51 AM (in response to ajanz)Yes, add proper data table value.
-
4. Re: generate datatable from java code
ilya_shaikovsky Jan 15, 2009 9:51 AM (in response to ajanz)developers friend google suggest me this:
http://balusc.blogspot.com/2006/06/using-datatables.html#PopulateDatatable
;)