Hi Jose
Please tell how you have done this.
I have the exactly same requirement but table row are not getting populated in the UI .
private void populateHeader(String columns, AsyncTable table){
System.out.println(“populateHeader is called…”);
int size = columns.length;
List<UIComponent> tblColumns = table.getChildren();
while(!tblColumns.isEmpty()){
tblColumns.remove(0);
}
HtmlTableColumn actionColumn = new HtmlTableColumn();
tblColumns.add(actionColumn);
String renderExpression = "#{not empty AccountFilterUIDefaultviewView.getRoutingTokenByRoutID.result.getRoutingTokenByRoutIDResponse.routingTokenDetails.o_row_data_list[0]}";
ValueExpression renderValueExpression = getFacesContext().getApplication().getExpressionFactory().createValueExpression(getFacesContext().getELContext(), renderExpression, String.class);
actionColumn.setValueExpression("rendered",renderValueExpression);
for(int i=0; i<size;i++){
HtmlTableColumn stdColumn = new HtmlTableColumn();
stdColumn.setId("column_"+columns[i]+"_"+i);
tblColumns.add(stdColumn);
HtmlOutputText header = new HtmlOutputText();
header.setValue(columns[i]);
stdColumn.setHeader(header);
HtmlOutputText content = new HtmlOutputText();
String contentExpression = "#{row.o_column_data_array["+i+"]}";
ValueExpression valueExpression = getFacesContext().getApplication().getExpressionFactory().createValueExpression(getFacesContext().getELContext(), contentExpression, String.class);
content.setValueExpression("value", valueExpression);
stdColumn.getChildren().add(content);
stdColumn.setSort(contentExpression);
}
}
Thanks
Manoj Kumar
#MWS-CAF-Task-Engine#webMethods#webMethods-BPMS