publisherRevision.xhtml 3.17 KB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:jsf="http://xmlns.jcp.org/jsf"
      >
<head>
<f:metadata>
    <f:viewParam name="publisherRevisionId" value="#{publisherRevisionView.publisherRevisionId}" />
    <f:viewAction action="#{publisherRevisionView.loadData}" />
</f:metadata>
</head>
<body>

<h:form>
    <h:commandLink action="home">
        <h:outputText value="Menu principal"/>
    </h:commandLink>

    <h:panelGrid columns="2">
        <h:outputText value='publisherName'/>
        <h:outputText value='#{publisherRevisionView.publisherName}'/>
        <h:outputText value='publisherStreetAddress'/>
        <h:outputText value='#{publisherRevisionView.publisherStreetAddress}'/>
        <h:outputText value='publisherPostalCode'/>
        <h:outputText value='#{publisherRevisionView.publisherPostalCode}'/>
        <h:outputText value='publisherPostOfficeBoxNumber'/>
        <h:outputText value='#{publisherRevisionView.publisherPostOfficeBoxNumber}'/>
        <h:outputText value='publisherAddressRegion'/>
        <h:outputText value='#{publisherRevisionView.publisherAddressRegion}'/>
        <h:outputText value='publisherAddressLocality'/>
        <h:outputText value='#{publisherRevisionView.publisherAddressLocality}'/>

        <h:outputText value='publisherAddressCountry'/>
        <h:outputText value='#{publisherRevisionView.publisherAddressCountry.countryName}'/>
<ui:remove>
    <h:selectOneMenu value="#{publisherRevisionView.publisherAddressCountry}" converter="omnifaces.SelectItemsConverter">
        <f:selectItems value="#{publisherRevisionView.availableCountries}" var="country" itemLabel="#{country.countryName}"/>
    </h:selectOneMenu>
</ui:remove>

        <h:outputText value='publisherTelephone'/>
        <h:outputText value='#{publisherRevisionView.publisherTelephone}'/>
        <h:outputText value='publisherEmail'/>
        <h:outputText value='#{publisherRevisionView.publisherEmail}'/>
        <h:outputText value='publisherURL'/>
        <h:outputText value='#{publisherRevisionView.publisherURL}'/>

        <h:outputText value='publisherActive'/>
        <h:outputText value="#{publisherRevisionView.publisherActive}"/>
        <ui:remove>
            <h:selectBooleanCheckbox value="#{publisherRevisionView.publisherActive}"/>
        </ui:remove>

        <h:outputText value='publisherHistory'/>
        <h:outputText value='#{publisherRevisionView.publisherHistory}'/>
        <h:outputText value="publisherRevisionAuthor"/>
        <h:outputText value="#{publisherRevisionView.publisherRevisionAuthor.displayName}"/>
        <h:outputText value="publisherRevisionDatetime"/>
        <h:outputText value="#{publisherRevisionView.publisherRevisionDatetime}"/>
        <ui:remove>
            <h:outputText value='Add'/>
            <h:commandButton action="#{publisherRevisionView.update}" value="Add"/>
        </ui:remove>
    </h:panelGrid>
</h:form>
</body>
</html>