Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h:form>
- <h:panelGrid columns="#{bean.numberCount}">
- <c:forEach var="num" items="#{bean.numberList}">
- #{number}
- </c:forEach>
- </h:panelGrid>
- </h:form>
- private List<List<Float>> _Matrix;
- public List<List<Float>> get_Matrix() {
- return this._Matrix;
- }
- /**
- * Constructor for BackingBean.
- */
- public BackingBean() {
- this._Matrix = new ArrayList<List<Float>>();
- this._Matrix.add(new ArrayList<Float>());
- this._Matrix.add(new ArrayList<Float>());
- this._Matrix.get(0).add(1.0f);
- this._Matrix.get(0).add(2.0f);
- this._Matrix.get(0).add(3.0f);
- this._Matrix.get(1).add(1.0f);
- this._Matrix.get(1).add(2.0f);
- this._Matrix.get(1).add(3.0f);
- }
- <h:panelGrid columns="#{backingBean._ColumnNumber}">
- <c:forEach var="row" items="#{backingBean._Matrix}">
- <c:forEach var="value" items="#{row}">
- #{value}
- </c:forEach>
- </c:forEach>
- </h:panelGrid>
- <c:forEach var="value" items="#{row}">
- #{value}
- </c:forEach>
- </c:forEach>
- </h:panelGrid>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement