Jean-Francois Leveque
......@@ -45,6 +45,21 @@ public class PublisherRevisionView implements Serializable {
logger.debug("Found a publisher revision : {}", publisherRevision.toString());
publisherName = publisherRevision.getPublisherName();
publisherStreetAddress = publisherRevision.getPublisherStreetAddress();
publisherPostalCode = publisherRevision.getPublisherPostalCode();
publisherPostOfficeBoxNumber = publisherRevision.getPublisherPostOfficeBoxNumber();
publisherAddressRegion = publisherRevision.getPublisherAddressRegion();
publisherAddressLocality = publisherRevision.getPublisherAddressLocality();
publisherAddressCountry = publisherRevision.getPublisherAddressCountry();
publisherTelephone = publisherRevision.getPublisherTelephone();
publisherEmail = publisherRevision.getPublisherEmail();
publisherURL = publisherRevision.getPublisherURL();
publisherActive = publisherRevision.isPublisherActive();
publisherHistory = publisherRevision.getPublisherHistory();
publisherRevisionAuthor = publisherRevision.getPublisherRevisionAuthor();
publisherRevisionDatetime = publisherRevision.getPublisherRevisionDatetime();
// Map<String,String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
//
......@@ -172,4 +187,5 @@ public class PublisherRevisionView implements Serializable {
public void setPublisherRevisionDatetime(Timestamp publisherRevisionDatetime) {
this.publisherRevisionDatetime = publisherRevisionDatetime;
}
}
......
......@@ -15,12 +15,57 @@
</head>
<body>
<p>Depuis le paramètre : #{param['publisherRevisionId']} </p>
<p>En passant par la vue : #{publisherRevisionView.publisherRevisionId} </p>
<h:form>
<h:commandLink action="home">
<h:outputText value="Menu principal"/>
</h:commandLink>
<form action="" jsf:id="reload-form">
<button jsf:id="reload" jsf:action="#{publisherRevisionView.loadData}">Reload !</button>
</form>
<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>
\ No newline at end of file
......