Jean-Francois Leveque

Refactoring nouveau nommage

...@@ -17,7 +17,7 @@ import java.util.List; ...@@ -17,7 +17,7 @@ import java.util.List;
17 17
18 @Named 18 @Named
19 @RequestScoped 19 @RequestScoped
20 -public class ListPublisherRevisionsBean { 20 +public class ListPublisherRevisionsView {
21 Logger logger = LoggerFactory.getLogger(getClass()); 21 Logger logger = LoggerFactory.getLogger(getClass());
22 22
23 @Inject 23 @Inject
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
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 <f:metadata> 8 <f:metadata>
9 - <f:viewParam name="publisherId" value="#{listPublisherRevisionsBean.publisherId}"/> 9 + <f:viewParam name="publisherId" value="#{listPublisherRevisionsView.publisherId}"/>
10 - <f:viewAction action="#{listPublisherRevisionsBean.setView}"/> 10 + <f:viewAction action="#{listPublisherRevisionsView.setView}"/>
11 </f:metadata> 11 </f:metadata>
12 <h:body> 12 <h:body>
13 <h:form> 13 <h:form>
...@@ -25,19 +25,19 @@ ...@@ -25,19 +25,19 @@
25 </ul> 25 </ul>
26 </h:form> 26 </h:form>
27 27
28 - <h:link rendered="#{not listPublisherRevisionsBean.viewAll}" outcome="/listPublisherRevisions.xhtml">Voir tous les éditeurs</h:link> 28 + <h:link rendered="#{not listPublisherRevisionsView.viewAll}" outcome="/listPublisherRevisions.xhtml">Voir tous les éditeurs</h:link>
29 - <h:outputText rendered="#{listPublisherRevisionsBean.publisherRevisions.isEmpty()}">Liste des révisions est vide</h:outputText> 29 + <h:outputText rendered="#{listPublisherRevisionsView.publisherRevisions.isEmpty()}">Liste des révisions est vide</h:outputText>
30 - <h:dataTable value="#{listPublisherRevisionsBean.publisherRevisions}" var="revision"> 30 + <h:dataTable value="#{listPublisherRevisionsView.publisherRevisions}" var="revision">
31 <h:column> 31 <h:column>
32 <f:facet name="header">Visualiser ou Modifier</f:facet> 32 <f:facet name="header">Visualiser ou Modifier</f:facet>
33 <h:link outcome="view">Visualiser ou Modifier Version 33 <h:link outcome="view">Visualiser ou Modifier Version
34 <f:param name="publisherRevisionId" value="#{revision.publisherRevisionId}"/> 34 <f:param name="publisherRevisionId" value="#{revision.publisherRevisionId}"/>
35 </h:link> 35 </h:link>
36 </h:column> 36 </h:column>
37 - <h:column rendered="#{listPublisherRevisionsBean.viewAll}"> 37 + <h:column rendered="#{listPublisherRevisionsView.viewAll}">
38 <f:facet name="header">Editeur</f:facet> 38 <f:facet name="header">Editeur</f:facet>
39 #{revision.publisher.publisherId} 39 #{revision.publisher.publisherId}
40 - <h:link outcome="/listPublisherRevisions.xhtml"> 40 + <h:link outcome="/listPublisherRevisions">
41 <f:param name="publisherId" value="#{revision.publisher.publisherId}"/> 41 <f:param name="publisherId" value="#{revision.publisher.publisherId}"/>
42 </h:link> 42 </h:link>
43 </h:column> 43 </h:column>
......