]> git.mxchange.org Git - jjobs-war.git/blobdiff - web/WEB-INF/templates/login/login_base.tpl
global commit: changed name space to jcp.org as this is seems to be lesser proprietary?
[jjobs-war.git] / web / WEB-INF / templates / login / login_base.tpl
index abd205b7778faaf725475f1a6fe4b3c29c1d6fd0..dafc778692108fb3ae5f4c43c7fe87dc1a97f7f4 100644 (file)
@@ -1,14 +1,19 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <ui:composition
-       rendered="#{loginController.isUserLoggedIn()}"
        template="/WEB-INF/templates/base.tpl"
        xmlns="http://www.w3.org/1999/xhtml"
-       xmlns:ui="http://java.sun.com/jsf/facelets">
+       xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+       xmlns:h="http://xmlns.jcp.org/jsf/html">
 
        <ui:define name="title">#{msg.PAGE_TITLE_LOGIN_AREA} - <ui:insert name="login_title" class="login_title" /></ui:define>
 
        <ui:define name="menu">
-               <ui:include id="menu" class="login_menu" src="/WEB-INF/templates/login/login_menu.tpl" />
+               <ui:fragment rendered="#{loginController.isUserLoggedIn()}">
+                       <ui:include id="menu" class="login_menu" src="/WEB-INF/templates/login/login_menu.tpl" />
+               </ui:fragment>
+               <ui:fragment rendered="#{not loginController.isUserLoggedIn()}">
+                       <h:outputText class="errors" value="#{msg.USER_NOT_LOGGED_IN}" />
+               </ui:fragment>
        </ui:define>
 
        <ui:define name="footer">