Here is the dynamic populator method. Looks like the value attribute is not being bound
(it wasn't null in the Eclipse debugger)...
public void populateDynamicDataTable() {
|
| // Any columns?
| if (myList != null && myList.size() > 0) {
| dynamicDataTable = new HtmlDataTable();
|
| // Get amount of columns.
| int columns = ((List) myList.get(0)).size();
|
| // Set columns.
| for (int i = 0; i < columns; i++) {
|
| // Set header (optional).
| UIOutput header = new UIOutput();
| header.setValue(headers);
|
| // Set output.
| UIOutput output = new UIOutput();
| ValueBinding myItem =
| FacesContext
| .getCurrentInstance()
| .getApplication()
| .createValueBinding("#{myItem[" + i +
"]}");
| output.setValueBinding("value", myItem);
|
| // Set column.
| UIColumn column = new UIColumn();
| column.setHeader(header);
| column.getChildren().add(output);
|
| // Add column.
| dynamicDataTable.getChildren().add(column);
| }
| }
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089832#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...