Jean-Francois Leveque
...@@ -44,6 +44,21 @@ public class PublisherRevisionView implements Serializable { ...@@ -44,6 +44,21 @@ public class PublisherRevisionView implements Serializable {
44 44
45 logger.debug("Found a publisher revision : {}", publisherRevision.toString()); 45 logger.debug("Found a publisher revision : {}", publisherRevision.toString());
46 46
47 + publisherName = publisherRevision.getPublisherName();
48 + publisherStreetAddress = publisherRevision.getPublisherStreetAddress();
49 + publisherPostalCode = publisherRevision.getPublisherPostalCode();
50 + publisherPostOfficeBoxNumber = publisherRevision.getPublisherPostOfficeBoxNumber();
51 + publisherAddressRegion = publisherRevision.getPublisherAddressRegion();
52 + publisherAddressLocality = publisherRevision.getPublisherAddressLocality();
53 + publisherAddressCountry = publisherRevision.getPublisherAddressCountry();
54 + publisherTelephone = publisherRevision.getPublisherTelephone();
55 + publisherEmail = publisherRevision.getPublisherEmail();
56 + publisherURL = publisherRevision.getPublisherURL();
57 + publisherActive = publisherRevision.isPublisherActive();
58 + publisherHistory = publisherRevision.getPublisherHistory();
59 + publisherRevisionAuthor = publisherRevision.getPublisherRevisionAuthor();
60 + publisherRevisionDatetime = publisherRevision.getPublisherRevisionDatetime();
61 +
47 62
48 // Map<String,String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap(); 63 // Map<String,String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
49 // 64 //
...@@ -171,4 +186,5 @@ public class PublisherRevisionView implements Serializable { ...@@ -171,4 +186,5 @@ public class PublisherRevisionView implements Serializable {
171 public void setPublisherRevisionDatetime(Timestamp publisherRevisionDatetime) { 186 public void setPublisherRevisionDatetime(Timestamp publisherRevisionDatetime) {
172 this.publisherRevisionDatetime = publisherRevisionDatetime; 187 this.publisherRevisionDatetime = publisherRevisionDatetime;
173 } 188 }
189 +
174 } 190 }
......
...@@ -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
......