]> git.mxchange.org Git - addressbook-war.git/blob - web/WEB-INF/templates/generic/user_profile_link.tpl
class was wrong, needs to be styleClass
[addressbook-war.git] / web / WEB-INF / templates / generic / user_profile_link.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         xmlns="http://www.w3.org/1999/xhtml"
4         xmlns:f="http://java.sun.com/jsf/core"
5         xmlns:h="http://java.sun.com/jsf/html"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
7
8         <h:outputText styleClass="notice" value="#{msg.ERROR_PARAMETER_USER_NOT_SET}" rendered="#{empty user}" />
9
10         <h:outputText styleClass="notice" value="#{msg.USER_PROFILE_NOT_PUBLICLY_VISIBLE}" rendered="#{not empty user and not profileController.isProfileLinkVisibleByUser(user)}" />
11
12         <h:link id="userProfileLink" outcome="user_profile" title="#{msg.LINK_USER_PROFILE_TITLE}" rendered="#{not empty user and profileController.isProfileLinkVisibleByUser(user)}">
13                 <h:outputText id="userName" value="#{user.userName}" />
14                 <f:param name="userId" value="#{user.userId}" />
15         </h:link>
16 </ui:composition>