Jean-Francois Leveque

Refactoring nouveau nommage

......@@ -17,7 +17,7 @@ import java.util.List;
@Named
@RequestScoped
public class ListPublisherRevisionsBean {
public class ListPublisherRevisionsView {
Logger logger = LoggerFactory.getLogger(getClass());
@Inject
......
......@@ -6,8 +6,8 @@
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<f:metadata>
<f:viewParam name="publisherId" value="#{listPublisherRevisionsBean.publisherId}"/>
<f:viewAction action="#{listPublisherRevisionsBean.setView}"/>
<f:viewParam name="publisherId" value="#{listPublisherRevisionsView.publisherId}"/>
<f:viewAction action="#{listPublisherRevisionsView.setView}"/>
</f:metadata>
<h:body>
<h:form>
......@@ -25,19 +25,19 @@
</ul>
</h:form>
<h:link rendered="#{not listPublisherRevisionsBean.viewAll}" outcome="/listPublisherRevisions.xhtml">Voir tous les éditeurs</h:link>
<h:outputText rendered="#{listPublisherRevisionsBean.publisherRevisions.isEmpty()}">Liste des révisions est vide</h:outputText>
<h:dataTable value="#{listPublisherRevisionsBean.publisherRevisions}" var="revision">
<h:link rendered="#{not listPublisherRevisionsView.viewAll}" outcome="/listPublisherRevisions.xhtml">Voir tous les éditeurs</h:link>
<h:outputText rendered="#{listPublisherRevisionsView.publisherRevisions.isEmpty()}">Liste des révisions est vide</h:outputText>
<h:dataTable value="#{listPublisherRevisionsView.publisherRevisions}" var="revision">
<h:column>
<f:facet name="header">Visualiser ou Modifier</f:facet>
<h:link outcome="view">Visualiser ou Modifier Version
<f:param name="publisherRevisionId" value="#{revision.publisherRevisionId}"/>
</h:link>
</h:column>
<h:column rendered="#{listPublisherRevisionsBean.viewAll}">
<h:column rendered="#{listPublisherRevisionsView.viewAll}">
<f:facet name="header">Editeur</f:facet>
#{revision.publisher.publisherId}
<h:link outcome="/listPublisherRevisions.xhtml">
<h:link outcome="/listPublisherRevisions">
<f:param name="publisherId" value="#{revision.publisher.publisherId}"/>
</h:link>
</h:column>
......