Advertisement
Metrowy

Widok

Mar 23rd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html>
  3. <html xmlns="http://www.w3.org/1999/xhtml"
  4. xmlns:ui="http://java.sun.com/jsf/facelets"
  5. xmlns:f="http://java.sun.com/jsf/core"
  6. xmlns:h="http://java.sun.com/jsf/html"
  7. xmlns:p="http://primefaces.org/ui">
  8.  
  9. <ui:composition template="../../partials/main.xhtml">
  10. <ui:define name="banner"></ui:define>
  11. <ui:define name="content">
  12. <div id="main">
  13. <section>
  14. <div class="inner">
  15. <h3>Lista Albumów</h3>
  16. <div class="inner">
  17. <hr />
  18. <h:form id="form">
  19. <p:growl id="msgs" showDetail="false" closeable="true"
  20. life="2000" />
  21.  
  22. <div class="table-wrapper">
  23. <p:dataTable id="plyta" var="p" rows="5"
  24. value="#{plytaListBB.list}" editable="true"
  25. paginator="true"
  26. paginatorTemplate="{CurrentPageReport} {PageLinks}"
  27. rowsPerPageTemplate="5,10,15">
  28.  
  29. <p:column headerText="Tytuł" >
  30. <h:outputText value="#{p.tytul}" />
  31. </p:column>
  32. <p:column headerText="Gatunek" >
  33. <h:outputText value="#{p.gatunek.nazwaGatunku}" />
  34. </p:column>
  35. <p:column headerText="Autor" >
  36. <h:outputText value="#{p.autor.nazwaAutora}" />
  37. </p:column>
  38. <p:column>
  39. <f:facet name="header">
  40. <h:outputText value="Edytuj" />
  41. </f:facet>
  42. <p:commandButton value = "Edytuj" class = "button fit small"
  43. action="#{plytaListBB.edit(p)}"
  44. />
  45. </p:column>
  46. <p:column>
  47. <f:facet name="header">
  48. <h:outputText value="Usuń" />
  49. </f:facet>
  50. <p:commandButton value="Usuń" class="button fit small"
  51. action="#{plytaListBB.deletePlyta(p)}"
  52. update=":form:msgs plyta" />
  53. </p:column>
  54. <p:column>
  55. <f:facet name="header">
  56. <h:outputText value="Dodaj do listy" />
  57. </f:facet>
  58. <p:commandButton value = "Dodaj do mojej listy" class = "button fit small"
  59. action="#{plytaListBB.addToUser(p)}"
  60. />
  61. </p:column>
  62.  
  63.  
  64. </p:dataTable>
  65. </div>
  66. <hr />
  67. </h:form>
  68. </div>
  69. </div>
  70. </section>
  71. </div>
  72. </ui:define>
  73. </ui:composition>
  74. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement