| 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://java.sun.com/jsf/facelets" |
| 5 | xmlns:h="http://java.sun.com/jsf/html" |
| 6 | xmlns:f="http://java.sun.com/jsf/core"> |
| 7 | |
| 8 | <ui:composition template="/template.xhtml"> |
| 9 | <ui:define name="title"> |
| 10 | <h:outputText value="#{bundle.ListBayesianNetworkTitle}"></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.ListBayesianNetworkEmpty}" rendered="#{bayesianNetworkController.items.rowCount == 0}"/> |
| 18 | <h:panelGroup rendered="#{bayesianNetworkController.items.rowCount > 0}"> |
| 19 | <h:outputText value="#{bayesianNetworkController.pagination.pageFirstItem + 1}..#{bayesianNetworkController.pagination.pageLastItem + 1}/#{bayesianNetworkController.pagination.itemsCount}"/> |
| 20 | <h:commandLink action="#{bayesianNetworkController.previous}" value="#{bundle.Previous} #{bayesianNetworkController.pagination.pageSize}" rendered="#{bayesianNetworkController.pagination.hasPreviousPage}"/> |
| 21 | <h:commandLink action="#{bayesianNetworkController.next}" value="#{bundle.Next} #{bayesianNetworkController.pagination.pageSize}" rendered="#{bayesianNetworkController.pagination.hasNextPage}"/> |
| 22 | <h:dataTable value="#{bayesianNetworkController.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.ListBayesianNetworkTitle_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.ListBayesianNetworkTitle_name}"/> |
| 32 | </f:facet> |
| 33 | <h:outputText value="#{item.name}"/> |
| 34 | </h:column> |
| 35 | <h:column> |
| 36 | <f:facet name="header"> |
| 37 | <h:outputText value=" "/> |
| 38 | </f:facet> |
| 39 | <h:commandLink action="#{bayesianNetworkController.prepareView}" value="#{bundle.ListBayesianNetworkViewLink}"/> |
| 40 | <h:outputText value=" "/> |
| 41 | <h:commandLink action="#{bayesianNetworkController.prepareEdit}" value="#{bundle.ListBayesianNetworkEditLink}"/> |
| 42 | <h:outputText value=" "/> |
| 43 | <h:commandLink action="#{bayesianNetworkController.destroy}" value="#{bundle.ListBayesianNetworkDestroyLink}"/> |
| 44 | </h:column> |
| 45 | </h:dataTable> |
| 46 | </h:panelGroup> |
| 47 | <br /> |
| 48 | <h:commandLink action="#{bayesianNetworkController.prepareCreate}" value="#{bundle.ListBayesianNetworkCreateLink}"/> |
| 49 | <br /> |
| 50 | <br /> |
| 51 | <h:commandLink value="#{bundle.ListBayesianNetworkIndexLink}" action="/index" immediate="true" /> |
| 52 | </h:form> |
| 53 | </ui:define> |
| 54 | </ui:composition> |
| 55 | |
| 56 | </html> |