1 <?xml version="1.0" encoding="UTF-8" ?>
3 <f:viewParam id="addressbookId" name="addressbookId" value="#{addressbookController.addressbookId}" required="true" requiredMessage="#{msg.PARAMETER_ADDRESSBOOK_ID_MISSING}" converterMessage="#{msg.PARAMETER_ADDRESSBOOK_ID_INVALID}" validatorMessage="#{msg.PARAMETER_ADDRESSBOOK_ID_NOT_FOUND}">
4 <f:convertNumber for="addressbookId" type="number" minIntegerDigits="1" maxIntegerDigits="20" />
5 <f:validator for="addressbookId" validatorId="AddressbookIdValidator" />
9 <ui:composition template="/WEB-INF/templates/#{userLoginController.baseTemplatePathName}_base.tpl"
10 xmlns="http://www.w3.org/1999/xhtml"
11 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
12 xmlns:h="http://xmlns.jcp.org/jsf/html"
13 xmlns:f="http://xmlns.jcp.org/jsf/core">
15 <ui:define name="login_title">
16 <h:outputText value="#{msg.PAGE_TITLE_USER_SHOW_ADDRESSBOOK}" />
19 <ui:define name="guest_title">
20 <h:outputText value="#{msg.PAGE_TITLE_INDEX_SHOW_ADDRESSBOOK}" />
23 <ui:define name="content_header">
24 <h:outputText value="#{msg.CONTENT_TITLE_USER_SHOW_ADDRESSBOOK}" />
27 <ui:define name="content">
28 <h:panelGrid headerClass="table_header" styleClass="table" columns="2" rendered="#{addressbookController.loadAddressbook()}">
29 <f:facet name="header">
30 <h:outputText value="#{msg.TABLE_HEADER_SHOW_ADDRESSBOOK}" />
33 <h:outputLabel for="addressbookName" styleClass="table_label">#{msg.ADDRESSBOOK_NAME}</h:outputLabel>
34 <h:outputText id="addressbookName" value="#{addressbookController.addressbookName}" />
36 <h:outputLabel for="userProfileLink" styleClass="table_label">#{msg.ADDRESSBOOK_OWNER}</h:outputLabel>
37 <ui:include src="/WEB-INF/templates/user/user_profile_link.tpl">
38 <ui:param name="user" value="#{addressbookController.addressbookUser}" />
41 <h:outputLabel for="addressbookCreated" styleClass="table_label">#{msg.ADDRESSBOOK_CREATED}</h:outputLabel>
42 <h:outputFormat id="addressbookCreated" value="#{addressbookController.addressbook.addressbookCreated.time}" title="#{msg.ADDRESSBOOK_CREATED_TITLE}">
43 <f:convertDateTime for="addressbookCreated" type="both" timeStyle="short" dateStyle="medium" />
46 <h:outputLabel for="addressbookStatus" styleClass="table_label">#{msg.ADDRESSBOOK_STATUS}</h:outputLabel>
47 <h:outputText id="addressbookStatus" value="#{msg[addressbookController.addressbook.addressbookStatus.messageKey]}" title="#{msg.ADDRESSBOOK_STATUS_TITLE}" />
49 <f:facet name="footer">
50 <h:outputText id="ownProfileInvible" styleClass="notice" value="#{msg.USER_NOT_LOGGED_IN}" rendered="#{not userLoginController.isUserLoggedIn()}" />
51 <h:outputText id="ownProfileInvible" styleClass="notice" value="#{msg.LOGIN_OWN_PROFILE_INVISIBLE}" rendered="#{userLoginController.isUserLoggedIn() and userLoginController.isInvisible()}" />
53 <ui:fragment rendered="#{userLoginController.isUserLoggedIn() and not userLoginController.isInvisible()}">
54 <h:outputText value="Bla bla" rendered="#{addressbookController.isOtherAddressbook()}" />