Facebook
From Denim Kitten, 5 Years ago, written in Plain Text.
This paste is a reply to Untitled from Buff Tern - view diff
Embed
Download Paste or View Raw
Hits: 258
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml"
  4.       xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
  5.       xmlns:h="http://xmlns.jcp.org/jsf/html"
  6.       xmlns:f="http://xmlns.jcp.org/jsf/core">
  7.  
  8.     <ui:composition template="/template.xhtml">
  9.         <ui:define name="title">
  10.             <h:outputText value="#{bundle.ListStudentTitle}"></h:outputText>
  11.         </ui:define>
  12.         <ui:define name="body">
  13.             <h:form styleClass="jsfcrud_list_form">
  14.                 <h:panelGroup id="messagePanel" layout="block">
  15.                     <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
  16.                 </h:panelGroup>
  17.                 <h:outputText escape="false" value="#{bundle.ListStudentEmpty}" rendered="#{studentController.items.rowCount == 0}"/>
  18.                 <h:panelGroup rendered="#{studentController.items.rowCount > 0}">
  19.                     <h:outputText value="#{studentController.pagination.pageFirstItem + 1}..#{studentController.pagination.pageLastItem + 1}/#{studentController.pagination.itemsCount}"/>&nbsp;
  20.                     <h:commandLink action="#{studentController.previous}" value="#{bundle.Previous} #{studentController.pagination.pageSize}" rendered="#{studentController.pagination.hasPreviousPage}"/>&nbsp;
  21.                     <h:commandLink action="#{studentController.next}" value="#{bundle.Next} #{studentController.pagination.pageSize}" rendered="#{studentController.pagination.hasNextPage}"/>&nbsp;
  22.                     <h:dataTable value="#{studentController.items}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px">
  23.                         <h:column>
  24.                             <f:facet name="header">
  25.                                 <h:outputText value="#{bundle.ListStudentTitle_id}"/>
  26.                             </f:facet>
  27.                             <h:outputText value="#{item.id}"/>
  28.                         </h:column>
  29.                         <h:column>
  30.                             <f:facet name="header">
  31.                                 <h:outputText value="#{bundle.ListStudentTitle_nralbumu}"/>
  32.                             </f:facet>
  33.                             <h:outputText value="#{item.nralbumu}"/>
  34.                         </h:column>
  35.                         <h:column>
  36.                             <f:facet name="header">
  37.                                 <h:outputText value="#{bundle.ListStudentTitle_imie}"/>
  38.                             </f:facet>
  39.                             <h:outputText value="#{item.imie}"/>
  40.                         </h:column>
  41.                         <h:column>
  42.                             <f:facet name="header">
  43.                                 <h:outputText value="#{bundle.ListStudentTitle_nazwisko}"/>
  44.                             </f:facet>
  45.                             <h:outputText value="#{item.nazwisko}"/>
  46.                         </h:column>
  47.                         <h:column>
  48.                             <f:facet name="header">
  49.                                 <h:outputText value="&nbsp;"/>
  50.                             </f:facet>
  51.                             <h:commandLink action="#{studentController.prepareView}" value="#{bundle.ListStudentViewLink}"/>
  52.                             <h:outputText value=" "/>
  53.                             <h:commandLink action="#{studentController.prepareEdit}" value="#{bundle.ListStudentEditLink}"/>
  54.                             <h:outputText value=" "/>
  55.                             <h:commandLink action="#{studentController.destroy}" value="#{bundle.ListStudentDestroyLink}"/>
  56.                         </h:column>
  57.                     </h:dataTable>
  58.                 </h:panelGroup>
  59.                 <br />
  60.                 <h:commandLink action="#{studentController.prepareCreate}" value="#{bundle.ListStudentCreateLink}"/>
  61.                 <br />
  62.                 <br />
  63.                 <h:link outcome="/index" value="#{bundle.ListStudentIndexLink}"/>
  64.             </h:form>
  65.         </ui:define>
  66.     </ui:composition>
  67.  
  68. </html>
  69.