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.ViewAnswerTitle}"></h:outputText>
12 <ui:define name="body">
13 <h:panelGroup id="messagePanel" layout="block">
14 <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
17 <h:panelGrid columns="2">
18 <h:outputText value="#{bundle.ViewAnswerLabel_id}"/>
19 <h:outputText value="#{answerController.selected.id}" title="#{bundle.ViewAnswerTitle_id}"/>
20 <h:outputText value="#{bundle.ViewAnswerLabel_text}"/>
21 <h:outputText value="#{answerController.selected.text}" title="#{bundle.ViewAnswerTitle_text}"/>
22 <h:outputText value="#{bundle.ViewAnswerLabel_likelihood}"/>
23 <h:outputText value="#{answerController.selected.likelihood}" title="#{bundle.ViewAnswerTitle_likelihood}"/>
24 <h:outputText value="#{bundle.ViewAnswerLabel_question}"/>
25 <h:outputText value="#{answerController.selected.question}" title="#{bundle.ViewAnswerTitle_question}"/>
28 <h:commandLink action="#{answerController.destroyAndView}" value="#{bundle.ViewAnswerDestroyLink}"/>
31 <h:commandLink action="Edit" value="#{bundle.ViewAnswerEditLink}"/>
33 <h:commandLink action="#{answerController.prepareCreate}" value="#{bundle.ViewAnswerCreateLink}" />
35 <h:commandLink action="#{answerController.prepareList}" value="#{bundle.ViewAnswerShowAllLink}"/>
38 <h:commandLink value="#{bundle.ViewAnswerIndexLink}" action="/index" immediate="true" />