src.txt 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /* ====================================================================
  2. * The Tmax soft License, Version 1.1
  3. *
  4. * Copyright (c) 1997-2004 The Tmax software.
  5. * All rights reserved.
  6. * html code omitted for readability.
  7. /* ====================================================================
  8. <%@ include file="../../upper.jsp" %>
  9. <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
  10. <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
  11. <html>
  12. <body>
  13. <f:view>
  14. <fieldset>
  15. <legend><b>&lt;h:selectOneListbox id="products" value="#{productBean.currentProduct}"&gt;...</b></legend>
  16. <h:selectOneListbox id="pickCar" value="#{productBean.currentProduct}">
  17. <f:selectItems value="#{productBean.productList}" />
  18. </h:selectOneListbox>
  19. </fieldset>
  20. <fieldset>
  21. <legend><b>&lt;h:selectOneMenu id="selectProduct" value="#{productBean.currentProduct}"&gt;...</b></legend>
  22. <h:selectOneMenu id="selectProduct" value="#{productBean.currentProduct}"><f:selectItems value="#{productBean.productList}" />
  23. </h:selectOneMenu>
  24. </fieldset>
  25. <fieldset>
  26. <legend><b>UIPanel</b></legend>
  27. <h:panelGrid columns="4" footerClass="subtitle"
  28. headerClass="subtitlebig" styleClass="medium"
  29. columnClasses="subtitle,medium">
  30. <f:facet name="header">
  31. <h:outputText value="Table with numbers"/>
  32. </f:facet>
  33. <h:outputText value="1" />
  34. <h:outputText value="2" />
  35. <h:outputText value="3" />
  36. <h:outputText value="4" />
  37. <h:outputText value="5" />
  38. <h:outputText value="6" />
  39. <h:outputText value="7" />
  40. <f:facet name="footer">
  41. <h:panelGroup>
  42. <h:outputText value="one row" />
  43. <h:outputText value=" " />
  44. <h:outputText
  45. value="grouped with panelGroup" />
  46. </h:panelGroup>
  47. </f:facet>
  48. </h:panelGrid>
  49. </fieldset>
  50. <fieldset>
  51. <legend><b>UIColumn and UIData</b></legend>
  52. <h:dataTable id="books" columnClasses="list-column-center, list-column-right, list-column-center, list-column-right" headerClass="list-header" rowClasses="list-row" styleClass="list-background" value="#{BookStore.items}" var="store">
  53. <h:column>
  54. <f:facet name="header">
  55. <h:outputText value="#{msg.storeNameLabel}"/>
  56. </f:facet>
  57. <h:outputText value="#{store.name}"/>
  58. </h:column>
  59. <h:column>
  60. <f:facet name="header">
  61. <Subject>
  62. </f:facet>
  63. <h:outputText value="#{store.subject}"/>
  64. </h:column>
  65. <h:column>
  66. <f:facet name="header">
  67. <h:outputText value="#{msg.storePriceLabel}"/>
  68. </f:facet>
  69. <h:outputText value="#{store.price}"/>
  70. </h:column>
  71. </h:dataTable>
  72. </fieldset>
  73. </f:view>
  74. </body>
  75. </html>
  76. <%@ include file="../../footer.html" %>