Jean-Francois Leveque

https://tree.taiga.io/project/jr-utily-grog-v3/us/44 Implementer l'historisation pour les éditeurs

https://tree.taiga.io/project/jr-utily-grog-v3/task/82 Minimalisation des namespaces pour la page d'élément unique
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
5 xmlns:h="http://xmlns.jcp.org/jsf/html" 5 xmlns:h="http://xmlns.jcp.org/jsf/html"
6 xmlns:ui="http://xmlns.jcp.org/jsf/facelets" 6 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7 xmlns:f="http://xmlns.jcp.org/jsf/core" 7 xmlns:f="http://xmlns.jcp.org/jsf/core"
8 - xmlns:jsf="http://xmlns.jcp.org/jsf" 8 + xmlns:jsf="http://xmlns.jcp.org/jsf">
9 - >
10 <head> 9 <head>
11 <f:metadata> 10 <f:metadata>
12 <f:viewParam name="publisherRevisionId" value="#{publisherRevisionView.publisherRevisionId}" /> 11 <f:viewParam name="publisherRevisionId" value="#{publisherRevisionView.publisherRevisionId}" />
...@@ -26,53 +25,48 @@ ...@@ -26,53 +25,48 @@
26 </ul> 25 </ul>
27 26
28 <h:panelGrid columns="2"> 27 <h:panelGrid columns="2">
29 - <h:outputText value='publisherName'/> 28 + publisherName
30 - <h:inputText value='#{publisherRevisionView.publisherName}' disabled="#{not publisherRevisionView.editMode}"/> 29 + <input type="text" value='#{publisherRevisionView.publisherName}' jsf:disabled="#{not publisherRevisionView.editMode}"/>
31 - <h:outputText value='publisherStreetAddress'/> 30 + publisherStreetAddress
32 - <h:inputText value='#{publisherRevisionView.publisherStreetAddress}' disabled="#{not publisherRevisionView.editMode}"/> 31 + <input type="text" value='#{publisherRevisionView.publisherStreetAddress}' jsf:disabled="#{not publisherRevisionView.editMode}"/>
33 - <h:outputText value='publisherPostalCode'/> 32 + publisherPostalCode
34 - <h:inputText value='#{publisherRevisionView.publisherPostalCode}' disabled="#{not publisherRevisionView.editMode}"/> 33 + <input type="text" value='#{publisherRevisionView.publisherPostalCode}' jsf:disabled="#{not publisherRevisionView.editMode}"/>
35 - <h:outputText value='publisherPostOfficeBoxNumber'/> 34 + publisherPostOfficeBoxNumber
36 - <h:inputText value='#{publisherRevisionView.publisherPostOfficeBoxNumber}' disabled="#{not publisherRevisionView.editMode}"/> 35 + <input type="text" value='#{publisherRevisionView.publisherPostOfficeBoxNumber}' jsf:disabled="#{not publisherRevisionView.editMode}"/>
37 - <h:outputText value='publisherAddressRegion'/> 36 + publisherAddressRegion
38 - <h:inputText value='#{publisherRevisionView.publisherAddressRegion}' disabled="#{not publisherRevisionView.editMode}"/> 37 + <input type="text" value='#{publisherRevisionView.publisherAddressRegion}' jsf:disabled="#{not publisherRevisionView.editMode}"/>
39 - <h:outputText value='publisherAddressLocality'/> 38 + publisherAddressLocality
40 - <h:inputText value='#{publisherRevisionView.publisherAddressLocality}' disabled="#{not publisherRevisionView.editMode}"/> 39 + <input type="text" value='#{publisherRevisionView.publisherAddressLocality}' jsf:disabled="#{not publisherRevisionView.editMode}"/>
41 40
42 - <h:outputText value='publisherAddressCountry'/> 41 + publisherAddressCountry
43 - <ui:remove>
44 - <h:outputText value='#{publisherRevisionView.publisherAddressCountry.countryName}'/>
45 - </ui:remove>
46 <h:selectOneMenu value="#{publisherRevisionView.publisherAddressCountry}" converter="omnifaces.SelectItemsConverter" disabled="#{not publisherRevisionView.editMode}"> 42 <h:selectOneMenu value="#{publisherRevisionView.publisherAddressCountry}" converter="omnifaces.SelectItemsConverter" disabled="#{not publisherRevisionView.editMode}">
47 <f:selectItems value="#{publisherRevisionView.availableCountries}" var="country" itemLabel="#{country.countryName}"/> 43 <f:selectItems value="#{publisherRevisionView.availableCountries}" var="country" itemLabel="#{country.countryName}"/>
48 </h:selectOneMenu> 44 </h:selectOneMenu>
49 45
50 - <h:outputText value='publisherTelephone'/> 46 + publisherTelephone
51 - <h:inputText value='#{publisherRevisionView.publisherTelephone}' disabled="#{not publisherRevisionView.editMode}"/> 47 + <input type="text" value='#{publisherRevisionView.publisherTelephone}' jsf:disabled="#{not publisherRevisionView.editMode}"/>
52 - <h:outputText value='publisherEmail'/> 48 + publisherEmail
53 - <h:inputText value='#{publisherRevisionView.publisherEmail}' disabled="#{not publisherRevisionView.editMode}"/> 49 + <input type="text" value='#{publisherRevisionView.publisherEmail}' jsf:disabled="#{not publisherRevisionView.editMode}"/>
54 - <h:outputText value='publisherURL'/> 50 + publisherURL
55 - <h:inputText value='#{publisherRevisionView.publisherURL}' disabled="#{not publisherRevisionView.editMode}"/> 51 + <input type="text" value='#{publisherRevisionView.publisherURL}' jsf:disabled="#{not publisherRevisionView.editMode}"/>
56 52
57 - <h:outputText value='publisherActive'/> 53 + publisherActive
54 + <input type="checkbox" jsf:disabled="#{not publisherRevisionView.editMode}" value="#{publisherRevisionView.publisherActive}"/>
58 <ui:remove> 55 <ui:remove>
59 - <h:outputText value="#{publisherRevisionView.publisherActive}"/>
60 - </ui:remove>
61 <h:selectBooleanCheckbox value="#{publisherRevisionView.publisherActive}" disabled="#{not publisherRevisionView.editMode}"/> 56 <h:selectBooleanCheckbox value="#{publisherRevisionView.publisherActive}" disabled="#{not publisherRevisionView.editMode}"/>
62 -
63 - <h:outputText value='publisherHistory'/>
64 - <h:inputTextarea value='#{publisherRevisionView.publisherHistory}' disabled="#{not publisherRevisionView.editMode}"/>
65 - <h:outputText value="publisherRevisionAuthor" rendered="#{not publisherRevisionView.newPublisher}"/>
66 - <h:outputText value="#{publisherRevisionView.publisherRevisionAuthor.displayName}" rendered="#{not publisherRevisionView.newPublisher}"/>
67 - <h:outputText value="publisherRevisionDatetime" rendered="#{not publisherRevisionView.newPublisher}"/>
68 - <h:outputText value="#{publisherRevisionView.publisherRevisionDatetime}" rendered="#{not publisherRevisionView.newPublisher}"/>
69 - <h:commandButton value="Edit" action="#{publisherRevisionView.edit}" rendered="#{not publisherRevisionView.editMode}"/>
70 - <h:commandButton value="Save" action="#{publisherRevisionView.save}" rendered="#{publisherRevisionView.editMode}"/>
71 - <h:commandButton value="Cancel" action="#{publisherRevisionView.cancel}" rendered="#{publisherRevisionView.editMode}"/>
72 - <ui:remove>
73 - <h:outputText value='Add'/>
74 - <h:commandButton action="#{publisherRevisionView.update}" value="Add"/>
75 </ui:remove> 57 </ui:remove>
58 +
59 + publisherHistory
60 + <textarea rows="" cols="" jsf:disabled="#{not publisherRevisionView.editMode}" jsf:value="#{publisherRevisionView.publisherHistory}"/>
61 +
62 + <div jsf:rendered="#{not publisherRevisionView.newPublisher}">publisherRevisionAuthor</div>
63 + <div jsf:rendered="#{not publisherRevisionView.newPublisher}">#{publisherRevisionView.publisherRevisionAuthor.displayName}</div>
64 + <div jsf:rendered="#{not publisherRevisionView.newPublisher}">publisherRevisionDatetime</div>
65 + <div jsf:rendered="#{not publisherRevisionView.newPublisher}">#{publisherRevisionView.publisherRevisionDatetime}</div>
66 +
67 + <button jsf:rendered="#{not publisherRevisionView.editMode}" jsf:action="#{publisherRevisionView.edit}">Edit</button>
68 + <button jsf:rendered="#{publisherRevisionView.editMode}" jsf:action="#{publisherRevisionView.save}">Save</button>
69 + <button jsf:rendered="#{publisherRevisionView.editMode}" jsf:action="#{publisherRevisionView.cancel}">Cancel</button>
76 </h:panelGrid> 70 </h:panelGrid>
77 </h:form> 71 </h:form>
78 </body> 72 </body>
......