Dynamic row length for h:dataTables…
… isn’t possible, as far as I know. Use this instead: <table> <ui:repeat value="#{columnBean.columns}" var="rows"> <tr> <ui:repeat value="#{rows}" var="row"> <td><h:outputText value="#{row}"/></td> </ui:repeat> </tr> </ui:repeat> </table> columnBean.getColumns() returns List<List<String>>. e.g.: public List<List<String>> getColumns() { List<List<String>> columns = new ArrayList<List<String>>(); for (int y = 0; y < 6; y++) { List<String> rows = new ArrayList<String>(); for (int [...]
Posted on June 11th, 2011 by anty
Filed under: Development | No Comments »