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">
8 <ui:composition template="/template.xhtml">
9 <ui:define name="title">
10 <h:outputText value="#{bundle.ListAnswerTitle}"></h:outputText>
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"/>
17 <h:outputText escape="false" value="#{bundle.ListAnswerEmpty}" rendered="#{answerController.items.rowCount == 0}"/>
18 <h:panelGroup rendered="#{answerController.items.rowCount > 0}">
19 <h:outputText value="#{answerController.pagination.pageFirstItem + 1}..#{answerController.pagination.pageLastItem + 1}/#{answerController.pagination.itemsCount}"/>
20 <h:commandLink action="#{answerController.previous}" value="#{bundle.Previous} #{answerController.pagination.pageSize}" rendered="#{answerController.pagination.hasPreviousPage}"/>
21 <h:commandLink action="#{answerController.next}" value="#{bundle.Next} #{answerController.pagination.pageSize}" rendered="#{answerController.pagination.hasNextPage}"/>
22 <h:dataTable value="#{answerController.items}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px">
24 <f:facet name="header">
25 <h:outputText value="#{bundle.ListAnswerTitle_id}"/>
27 <h:outputText value="#{item.id}"/>
30 <f:facet name="header">
31 <h:outputText value="#{bundle.ListAnswerTitle_text}"/>
33 <h:outputText value="#{item.text}"/>
36 <f:facet name="header">
37 <h:outputText value="#{bundle.ListAnswerTitle_likelihood}"/>
39 <h:outputText value="#{item.likelihood}"/>
42 <f:facet name="header">
43 <h:outputText value="#{bundle.ListAnswerTitle_question}"/>
45 <h:outputText value="#{item.question}"/>
48 <f:facet name="header">
49 <h:outputText value=" "/>
51 <h:commandLink action="#{answerController.prepareView}" value="#{bundle.ListAnswerViewLink}"/>
52 <h:outputText value=" "/>
53 <h:commandLink action="#{answerController.prepareEdit}" value="#{bundle.ListAnswerEditLink}"/>
54 <h:outputText value=" "/>
55 <h:commandLink action="#{answerController.destroy}" value="#{bundle.ListAnswerDestroyLink}"/>
60 <h:commandLink action="#{answerController.prepareCreate}" value="#{bundle.ListAnswerCreateLink}"/>
63 <h:commandLink value="#{bundle.ListAnswerIndexLink}" action="/index" immediate="true" />