]> git.mxchange.org Git - addressbook-war.git/blob - web/user/user_list.xhtml
cleanup from JSTL:
[addressbook-war.git] / web / user / user_list.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml"
4           xmlns:ui="http://java.sun.com/jsf/facelets"
5           xmlns:h="http://xmlns.jcp.org/jsf/html"
6           xmlns:f="http://xmlns.jcp.org/jsf/core"
7           >
8
9         <ui:composition template="/WEB-INF/templates/#{loginController.templateType}/#{loginController.templateType}_base.tpl">
10                 <ui:define name="login_title">#{msg.PAGE_TITLE_USER_LIST}</ui:define>
11
12                 <ui:define name="content_header">
13                         #{msg.CONTENT_TITLE_USER_LIST}
14                 </ui:define>
15
16                 <ui:define name="content">
17                         <div class="table_big">
18                                 <div class="table_header">
19                                         #{msg.TABLE_HEADER_USER_LIST}
20                                 </div>
21
22                                 <h:dataTable id="userList" var="user" value="#{userController.allVisibleUsers()}" headerClass="table_header_column25" summary="#{msg.TABLE_SUMMARY_USER_LIST}" rendered="#{userController.isVisibleUserFound()}">
23                                         <h:column>
24                                                 <f:facet name="header">#{msg.USER_ID}</f:facet>
25                                                 <ui:include src="/WEB-INF/templates/generic/user_profile_link.tpl">
26                                                         <f:setPropertyActionListener target="#{user}" value="#{profileController.user}" />
27                                                 </ui:include>
28                                         </h:column>
29
30                                         <h:column>
31                                                 <f:facet name="header">#{msg.USER_NAME}</f:facet>
32                                                 <ui:include src="/WEB-INF/templates/generic/user_profile_link.tpl">
33                                                         <f:setPropertyActionListener target="#{user}" value="#{profileController.user}" />
34                                                 </ui:include>
35                                         </h:column>
36
37                                         <h:column>
38                                                 <f:facet name="header">#{msg.USER_CREATED}</f:facet>
39                                                 <h:outputFormat id="userCreated" value="#{user.userCreated.time}" title="#{msg.USER_CREATED_TITLE}">
40                                                         <f:convertDateTime for="addressbookCreated" type="both" timeStyle="short" dateStyle="medium" />
41                                                 </h:outputFormat>
42                                         </h:column>
43
44                                         <h:column>
45                                                 <f:facet name="header">#{msg.USER_LIST_SHARING_ADDRESSBOOKS}</f:facet>
46                                                 <ui:fragment rendered="#{loginController.isUserLoggedIn()}">
47                                                         <h:link outcome="login_list_sharing_addressbooks" value="#{msg.LINK_LOGIN_LIST_SHARING_ADDRESSBOOKS}" title="#{msg.LINK_LOGIN_LIST_SHARING_ADDRESSBOOKS_TITLE}">
48                                                                 <f:param name="userId" value="#{user.userId}" />
49                                                         </h:link>
50                                                 </ui:fragment>
51                                                 <ui:fragment rendered="#{loginController.isGuest()}">
52                                                         <h:outputText id="userShared" value="#{addressbookController.countAllUserSharedAddressbooks(user)}" />
53                                                 </ui:fragment>
54                                         </h:column>
55                                 </h:dataTable>
56                         </div>
57                 </ui:define>
58         </ui:composition>
59 </html>