Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <h:form>
  2. <h:panelGrid columns="#{bean.numberCount}">
  3. <c:forEach var="num" items="#{bean.numberList}">
  4. #{number}
  5. </c:forEach>
  6. </h:panelGrid>
  7. </h:form>
  8.  
  9. private List<List<Float>> _Matrix;
  10.  
  11. public List<List<Float>> get_Matrix() {
  12. return this._Matrix;
  13. }
  14.  
  15. /**
  16. * Constructor for BackingBean.
  17. */
  18. public BackingBean() {
  19. this._Matrix = new ArrayList<List<Float>>();
  20. this._Matrix.add(new ArrayList<Float>());
  21. this._Matrix.add(new ArrayList<Float>());
  22. this._Matrix.get(0).add(1.0f);
  23. this._Matrix.get(0).add(2.0f);
  24. this._Matrix.get(0).add(3.0f);
  25. this._Matrix.get(1).add(1.0f);
  26. this._Matrix.get(1).add(2.0f);
  27. this._Matrix.get(1).add(3.0f);
  28. }
  29.  
  30. <h:panelGrid columns="#{backingBean._ColumnNumber}">
  31. <c:forEach var="row" items="#{backingBean._Matrix}">
  32.  
  33. <c:forEach var="value" items="#{row}">
  34.  
  35. #{value}
  36. </c:forEach>
  37. </c:forEach>
  38. </h:panelGrid>
  39.  
  40. <c:forEach var="value" items="#{row}">
  41.  
  42. #{value}
  43. </c:forEach>
  44. </c:forEach>
  45. </h:panelGrid>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement