]> git.mxchange.org Git - pizzaservice-war.git/blob - web/guest/user/user_profile.xhtml
class was wrong, needs to be styleClass
[pizzaservice-war.git] / web / guest / 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
4         lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
5         xmlns="http://www.w3.org/1999/xhtml"
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:c="http://xmlns.jcp.org/jsp/jstl/core">
10
11         <f:metadata>
12                 <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}">
13                         <f:convertNumber for="userId" type="number" minIntegerDigits="1" maxIntegerDigits="20" />
14                         <f:validator for="userId" validatorId="UserIdValidator" />
15                 </f:viewParam>
16         </f:metadata>
17
18         <ui:composition template="/WEB-INF/templates/#{userLoginController.templateType}/#{userLoginController.templateType}_base.tpl">
19                 <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_USER_PROFILE}</ui:define>
20                 <ui:define name="guest_title">#{msg.PAGE_TITLE_INDEX_USER_PROFILE}</ui:define>
21
22                 <ui:define name="content_header">
23                         #{msg.CONTENT_TITLE_INDEX_USER_PROFILE}
24                 </ui:define>
25
26                 <ui:define name="content">
27                         <c:choose>
28                                 <c:when test="#{userController.isUserIdEmpty()}">
29                                         <ui:include src="/WEB-INF/templates/user/userid_error.tpl" />
30                                 </c:when>
31
32                                 <c:when test="#{profileController.isProfileLinkVisibleById(userController.userId)}">
33                                         <div align="center">
34                                                 <h:panelGrid styleClass="table" headerClass="table_header" footerClass="table_footer">
35                                                         <f:facet name="header">
36                                                                 #{msg.PUBLIC_USER_PROFILE}
37                                                         </f:facet>
38                                                 </h:panelGrid>
39                                         </div>
40                                 </c:when>
41
42                                 <c:otherwise>
43                                         #{msg.ERROR_PROFILE_NOT_VISIBLE}
44                                 </c:otherwise>
45                         </c:choose>
46                 </ui:define>
47         </ui:composition>
48 </html>