create HtmlDataTable
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
create HtmlDataTable  XML
Forum Index -> Components
Author Message
hanna

Joined: 27/06/2007 00:00:00
Messages: 3
Offline



Hello

I used this HtmlDataTable to create a table, but it puts all Rows to empty, except the last one.


Code:
                         HtmlDataTable dataTable = new HtmlDataTable();
 			dataTable.setColNumber(2);
 			dataTable.setRows(15);
 			dataTable.setWidth("200");
 			
 			UIColumn col1 = new UIColumn();
 			HtmlOutputText h1 = new HtmlOutputText();
 			h1.setValue("Value");
 			col1.setHeader(h1);
 			
 			UIColumn col2 = new UIColumn();
 			HtmlOutputText h2 = new HtmlOutputText();
 			h2.setValue("Label");
 			col2.setHeader(h2);
 			
                     ValueBinding value =      application.createValueBinding("#{screenController.list}");
 			dataTable.setValueBinding("value", value);
 			dataTable.setVar("valueItem");
 			
             // Set output.
             HtmlOutputText output1 = new HtmlOutputText();
             ValueBinding myItem1 = application.createValueBinding("#{valueItem.value}");
             output1.setValueBinding("value", myItem1);
 			col1.getChildren().add(output1);
 			
 			HtmlOutputText output2 = new HtmlOutputText();
             ValueBinding myItem2 = application.createValueBinding("#{valueItem.title}");
            output2.setValueBinding("value", myItem2);
 			col2.getChildren().add(output2);
 
 			dataTable.getChildren().add(col1);
 			dataTable.getChildren().add(col2);
 			
 			grid.getChildren().add(dataTable);
 

thank you
Baleyba

Joined: 16/11/2006 00:00:00
Messages: 110
Offline


Hi,

I get exactly the same problem!

I'm creating dynamically dataTables. But the content is grouped into the 2 firsts rows???

I don't understand why. Is it a bug ?

I think it is a similar problem like in this post: http://www.icefaces.org/JForum/posts/list/5416.page


Regards
Bal.

JBoss 4.2.3 | Java 1.6.0_16 | IceFaces 1.8.2
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team