]> git.mxchange.org Git - jjobs-war.git/blob - user/user_profile.xhtml
Updated copyright year
[jjobs-war.git] / user / user_profile.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         template="/WEB-INF/templates/#{userLoginController.baseTemplatePathName}_base.tpl"
4         xmlns="http://www.w3.org/1999/xhtml"
5         xmlns:core="http://mxchange.org/jsf/core/widgets"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7         xmlns:h="http://xmlns.jcp.org/jsf/html"
8         xmlns:f="http://xmlns.jcp.org/jsf/core"
9         xmlns:p="http://primefaces.org/ui"
10         >
11
12         <ui:define name="metadata">
13                 <f:metadata>
14                         <f:viewParam name="userId" value="#{beanHelper.user}" converter="UserConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}" converterMessage="#{msg.PARAMETER_USER_ID_INVALID}" />
15                         <f:viewAction action="#{beanHelper.notifyControllerUserConverted()}" />
16                 </f:metadata>
17         </ui:define>
18
19         <ui:define name="document_login_title">
20                 <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_USER_PROFILE}" />
21         </ui:define>
22
23         <ui:define name="document_guest_title">
24                 <h:outputText value="#{msg.PAGE_TITLE_INDEX_USER_PROFILE}" />
25         </ui:define>
26
27         <ui:define name="content_header">
28                 <h:outputText value="#{msg.CONTENT_TITLE_INDEX_USER_PROFILE}" />
29         </ui:define>
30
31         <ui:define name="content">
32                 <core:outputMessageBox panelGroupId="errorUserProfileDisabled" message="#{msg.ERROR_GUEST_USER_PROFILE_DISABLED}" messageStyleClass="alert-danger" rendered="#{not userController.isPublicUserProfileEnabled()}" />
33
34                 <core:outputMessageBox panelGroupId="errorUserIdEmpty" message="#{msg.TABLE_HEADER_ERROR_HANDLING_USER_ID}" rendered="#{userController.isUserIdEmpty()}" />
35
36                 <ui:fragment rendered="#{userController.isPublicUserProfileEnabled()}">
37                         <core:outputMessageBox panelGroupId="errorUserProfileHidden" message="#{msg.ERROR_PROFILE_NOT_VISIBLE}" messageStyleClass="alert-danger" rendered="#{not profileController.isProfileLinkVisibleById(userController.userId)}" />
38
39                         <ui:fragment rendered="#{profileController.isProfileLinkVisibleById(userController.userId)}">
40                                 <p:panelGrid>
41                                         <f:facet name="header">
42                                                 <h:outputText value="#{msg.PUBLIC_USER_PROFILE}" />
43                                         </f:facet>
44                                         <!-- @TODO Unfinished -->
45                                 </p:panelGrid>
46                         </ui:fragment>
47                 </ui:fragment>
48         </ui:define>
49 </ui:composition>