]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
added view parameter 'userId' (mostly from URL)
authorRoland Häder <roland@mxchange.org>
Tue, 19 Apr 2016 15:45:06 +0000 (17:45 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 19 Apr 2016 17:43:02 +0000 (19:43 +0200)
web/admin/user/admin_user_delete.xhtml
web/admin/user/admin_user_edit.xhtml
web/admin/user/admin_user_unlock.xhtml

index 9396c8b1d15dc80c848155b1fbc35a46cb607fba..176979d07028ff00e253582687157ed9619707b0 100644 (file)
@@ -8,6 +8,10 @@
        xmlns:f="http://xmlns.jcp.org/jsf/core"
        >
 
+       <f:metadata>
+               <f:viewParam name="userId" value="#{user}" converter="UserConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}" />
+       </f:metadata>
+
        <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
                <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_DELETE_USER}</ui:define>
 
@@ -16,6 +20,8 @@
                </ui:define>
 
                <ui:define name="content">
+                       <h:outputText styleClass="errors" value="#{msg.ERROR_USER_ID_NOT_FOUND}" rendered="#{empty user}" />
+
                        Here goes your content.
                </ui:define>
        </ui:composition>
index 1e3bf5d9af236d90bd3c134f983215830056cba1..8c8523be10a9f49d87ebe7a60e9611a6a83f086a 100644 (file)
@@ -8,6 +8,10 @@
        xmlns:f="http://xmlns.jcp.org/jsf/core"
        >
 
+       <f:metadata>
+               <f:viewParam name="userId" value="#{user}" converter="UserConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}" />
+       </f:metadata>
+
        <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
                <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_EDIT_USER}</ui:define>
 
@@ -16,6 +20,8 @@
                </ui:define>
 
                <ui:define name="content">
+                       <h:outputText styleClass="errors" value="#{msg.ERROR_USER_ID_NOT_FOUND}" rendered="#{empty user}" />
+
                        Here goes your content.
                </ui:define>
        </ui:composition>
index 5f45befce45c174fd3905c263db8fea771a6b87a..da2dd766efe89e2428861ab06a0f74d86472b0ed 100644 (file)
@@ -8,6 +8,10 @@
        xmlns:f="http://xmlns.jcp.org/jsf/core"
        >
 
+       <f:metadata>
+               <f:viewParam name="userId" value="#{user}" converter="UserConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}" />
+       </f:metadata>
+
        <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
                <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_UNLOCK_USER}</ui:define>
 
@@ -16,6 +20,8 @@
                </ui:define>
 
                <ui:define name="content">
+                       <h:outputText styleClass="errors" value="#{msg.ERROR_USER_ID_NOT_FOUND}" rendered="#{empty user}" />
+
                        Here goes your content.
                </ui:define>
        </ui:composition>