]> git.mxchange.org Git - jjobs-war.git/blob - web/user/user_profile.xhtml
updated jar(s)
[jjobs-war.git] / web / user / user_profile.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           xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
8
9         <f:metadata>
10                 <f:viewParam id="userId" name="userId" value="#{userController.userId}" required="true" requiredMessage="#{msg.PARAMETER_USER_ID_MISSING}" converterMessage="#{msg.PARAMETER_USER_ID_INVALID}" validatorMessage="#{msg.PARAMETER_USER_ID_NOT_FOUND}">
11                         <f:convertNumber for="userId" type="number" minIntegerDigits="1" maxIntegerDigits="20" />
12                         <f:validator for="userId" validatorId="UserIdValidator" />
13                 </f:viewParam>
14         </f:metadata>
15
16         <ui:composition template="/WEB-INF/templates/#{loginController.templateType}/#{loginController.templateType}_base.tpl">
17                 <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_USER_PROFILE}</ui:define>
18                 <ui:define name="guest_title">#{msg.PAGE_TITLE_INDEX_USER_PROFILE}</ui:define>
19
20                 <ui:define name="content_header">
21                         #{msg.CONTENT_TITLE_INDEX_USER_PROFILE}
22                 </ui:define>
23
24                 <ui:define name="content">
25                         <c:choose>
26                                 <c:when test="#{userController.isUserIdEmpty()}">
27                                         <ui:include src="/WEB-INF/templates/generic/userid_error.tpl" />
28                                 </c:when>
29
30                                 <c:when test="#{profileController.isProfileLinkVisibleById(userController.userId)}">
31                                         <div align="center">
32                                                 <h:panelGrid styleClass="table" headerClass="table_header" footerClass="table_footer">
33                                                         <f:facet name="header">
34                                                                 #{msg.PUBLIC_USER_PROFILE}
35                                                         </f:facet>
36                                                 </h:panelGrid>
37                                         </div>
38                                 </c:when>
39
40                                 <c:otherwise>
41                                         #{msg.ERROR_PROFILE_NOT_VISIBLE}
42                                 </c:otherwise>
43                         </c:choose>
44                 </ui:define>
45         </ui:composition>
46 </html>