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/80 Minimalisation des namespaces de la page de liste
(partiel)
......@@ -4,14 +4,12 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:jsf="http://xmlns.jcp.org/jsf"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<f:metadata>
<f:viewParam name="publisherId" value="#{listPublisherRevisionsView.publisherId}"/>
<f:viewAction action="#{listPublisherRevisionsView.setView}"/>
</f:metadata>
<h:body>
<h:form>
<body>
<ul>
<li>
<a jsf:outcome="/index">Menu principal</a>
......@@ -20,20 +18,10 @@
<a jsf:outcome="publisherRevision">Ajouter un éditeur</a>
</li>
</ul>
</h:form>
<h:link rendered="#{not listPublisherRevisionsView.viewAll}" outcome="listPublisherRevisions">Voir tous les éditeurs</h:link>
<ui:remove>
<h:outputText rendered="#{not listPublisherRevisionsView.viewAll}">Révision valide #{listPublisherRevisionsView.publisherRevisions.get(0).publisher.validatedRevision.publisherRevisionId}</h:outputText>
</ui:remove>
<a jsf:outcome="listPublisherRevisions" jsf:rendered="#{not listPublisherRevisionsView.viewAll}">Voir tous les éditeurs</a>
<h:outputText rendered="#{listPublisherRevisionsView.publisherRevisions.isEmpty()}">Liste des révisions est vide</h:outputText>
<h:dataTable value="#{listPublisherRevisionsView.publisherRevisions}" var="revision">
<ui:remove>
<h:column>
<f:facet name="header">Id</f:facet>
#{revision.publisherRevisionId}
</h:column>
</ui:remove>
<h:column>
<f:facet name="header">Visualiser ou Modifier</f:facet>
<h:link outcome="view">Visualiser ou Modifier Version
......@@ -99,11 +87,17 @@
#{revision.publisherRevisionDatetime}
</h:column>
<h:column>
<f:facet name="header"></f:facet>
<f:facet name="header">Validation author</f:facet>
<h:outputText rendered="#{revision.publisherRevisionId == revision.publisher.validatedRevision.publisherRevisionId}">
#{revision.publisher.validator.displayName}
</h:outputText>
</h:column>
<h:column>
<f:facet name="header"></f:facet>
<f:facet name="header">Validation Datetime</f:facet>
<h:outputText rendered="#{revision.publisherRevisionId == revision.publisher.validatedRevision.publisherRevisionId}">
#{revision.publisher.validationDateTime}
</h:outputText>
</h:column>
</h:dataTable>
</h:body>
</body>
</html>
......