Jean-Francois Leveque
...@@ -45,6 +45,21 @@ public class PublisherRevisionView implements Serializable { ...@@ -45,6 +45,21 @@ public class PublisherRevisionView implements Serializable {
45 45
46 logger.debug("Found a publisher revision : {}", publisherRevision.toString()); 46 logger.debug("Found a publisher revision : {}", publisherRevision.toString());
47 47
48 + publisherName = publisherRevision.getPublisherName();
49 + publisherStreetAddress = publisherRevision.getPublisherStreetAddress();
50 + publisherPostalCode = publisherRevision.getPublisherPostalCode();
51 + publisherPostOfficeBoxNumber = publisherRevision.getPublisherPostOfficeBoxNumber();
52 + publisherAddressRegion = publisherRevision.getPublisherAddressRegion();
53 + publisherAddressLocality = publisherRevision.getPublisherAddressLocality();
54 + publisherAddressCountry = publisherRevision.getPublisherAddressCountry();
55 + publisherTelephone = publisherRevision.getPublisherTelephone();
56 + publisherEmail = publisherRevision.getPublisherEmail();
57 + publisherURL = publisherRevision.getPublisherURL();
58 + publisherActive = publisherRevision.isPublisherActive();
59 + publisherHistory = publisherRevision.getPublisherHistory();
60 + publisherRevisionAuthor = publisherRevision.getPublisherRevisionAuthor();
61 + publisherRevisionDatetime = publisherRevision.getPublisherRevisionDatetime();
62 +
48 63
49 // Map<String,String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap(); 64 // Map<String,String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
50 // 65 //
...@@ -172,4 +187,5 @@ public class PublisherRevisionView implements Serializable { ...@@ -172,4 +187,5 @@ public class PublisherRevisionView implements Serializable {
172 public void setPublisherRevisionDatetime(Timestamp publisherRevisionDatetime) { 187 public void setPublisherRevisionDatetime(Timestamp publisherRevisionDatetime) {
173 this.publisherRevisionDatetime = publisherRevisionDatetime; 188 this.publisherRevisionDatetime = publisherRevisionDatetime;
174 } 189 }
190 +
175 } 191 }
......
...@@ -15,12 +15,57 @@ ...@@ -15,12 +15,57 @@
15 </head> 15 </head>
16 <body> 16 <body>
17 17
18 -<p>Depuis le paramètre : #{param['publisherRevisionId']} </p> 18 +<h:form>
19 -<p>En passant par la vue : #{publisherRevisionView.publisherRevisionId} </p> 19 + <h:commandLink action="home">
20 + <h:outputText value="Menu principal"/>
21 + </h:commandLink>
20 22
21 -<form action="" jsf:id="reload-form"> 23 + <h:panelGrid columns="2">
22 - <button jsf:id="reload" jsf:action="#{publisherRevisionView.loadData}">Reload !</button> 24 + <h:outputText value='publisherName'/>
23 -</form> 25 + <h:outputText value='#{publisherRevisionView.publisherName}'/>
26 + <h:outputText value='publisherStreetAddress'/>
27 + <h:outputText value='#{publisherRevisionView.publisherStreetAddress}'/>
28 + <h:outputText value='publisherPostalCode'/>
29 + <h:outputText value='#{publisherRevisionView.publisherPostalCode}'/>
30 + <h:outputText value='publisherPostOfficeBoxNumber'/>
31 + <h:outputText value='#{publisherRevisionView.publisherPostOfficeBoxNumber}'/>
32 + <h:outputText value='publisherAddressRegion'/>
33 + <h:outputText value='#{publisherRevisionView.publisherAddressRegion}'/>
34 + <h:outputText value='publisherAddressLocality'/>
35 + <h:outputText value='#{publisherRevisionView.publisherAddressLocality}'/>
24 36
37 + <h:outputText value='publisherAddressCountry'/>
38 + <h:outputText value='#{publisherRevisionView.publisherAddressCountry.countryName}'/>
39 +<ui:remove>
40 + <h:selectOneMenu value="#{publisherRevisionView.publisherAddressCountry}" converter="omnifaces.SelectItemsConverter">
41 + <f:selectItems value="#{publisherRevisionView.availableCountries}" var="country" itemLabel="#{country.countryName}"/>
42 + </h:selectOneMenu>
43 +</ui:remove>
44 +
45 + <h:outputText value='publisherTelephone'/>
46 + <h:outputText value='#{publisherRevisionView.publisherTelephone}'/>
47 + <h:outputText value='publisherEmail'/>
48 + <h:outputText value='#{publisherRevisionView.publisherEmail}'/>
49 + <h:outputText value='publisherURL'/>
50 + <h:outputText value='#{publisherRevisionView.publisherURL}'/>
51 +
52 + <h:outputText value='publisherActive'/>
53 + <h:outputText value="#{publisherRevisionView.publisherActive}"/>
54 + <ui:remove>
55 + <h:selectBooleanCheckbox value="#{publisherRevisionView.publisherActive}"/>
56 + </ui:remove>
57 +
58 + <h:outputText value='publisherHistory'/>
59 + <h:outputText value='#{publisherRevisionView.publisherHistory}'/>
60 + <h:outputText value="publisherRevisionAuthor"/>
61 + <h:outputText value="#{publisherRevisionView.publisherRevisionAuthor.displayName}"/>
62 + <h:outputText value="publisherRevisionDatetime"/>
63 + <h:outputText value="#{publisherRevisionView.publisherRevisionDatetime}"/>
64 + <ui:remove>
65 + <h:outputText value='Add'/>
66 + <h:commandButton action="#{publisherRevisionView.update}" value="Add"/>
67 + </ui:remove>
68 + </h:panelGrid>
69 +</h:form>
25 </body> 70 </body>
26 </html> 71 </html>
...\ No newline at end of file ...\ No newline at end of file
......