]> git.mxchange.org Git - jjobs-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sat, 24 Mar 2018 22:16:11 +0000 (23:16 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 21 Jul 2019 06:01:47 +0000 (08:01 +0200)
- used on validator:emailAddressValidator as this allows empty values being
  ignored
- p:growl's autoUpdate and any other is deprecated, better use p:autoUpdate
  instead (new PrimeFaces 6.2 deprecation fixed)
- used $() instead of `` for monitoring script

Signed-off-by: Roland Häder <roland@mxchange.org>
monitor/monitor-cron.sh
web/WEB-INF/templates/base.tpl
web/guest/user/user_resend_link.xhtml

index 8596595bab75e61eceb4a3300b85cc46ff3ad162..d8449e726e04aeef54ee5a746300274ca01886cc 100755 (executable)
@@ -12,7 +12,7 @@ CONFIG_FILE="${HOME}/.monitor-${PROJECT_NAME}-cron.sh"
 
 . "${CONFIG_FILE}"  || exit 255
 
-MONITOR_OUTPUT=`lynx -dump -head "${PROJECT_URL}" -auth="${PROJECT_USER}:${PROJECT_PASSWORD}" | head -n 1`
+MONITOR_OUTPUT=$(lynx -dump -head "${PROJECT_URL}" -auth="${PROJECT_USER}:${PROJECT_PASSWORD}" | head -n 1)
 
 if [ "${MONITOR_OUTPUT}" != "HTTP/1.1 200 OK" ]
 then
@@ -24,7 +24,7 @@ then
        fi
 elif [ -f "${MONITOR_TEMP_FILE}" ]
 then
-       PREVIOUS_STATUS=`cat "${MONITOR_TEMP_FILE}"`
+       PREVIOUS_STATUS=$(cat "${MONITOR_TEMP_FILE}")
        echo "$0: ${PROJECT_NAME} is UP again, old status was: '${PREVIOUS_STATUS}'"
        rm -f "${MONITOR_TEMP_FILE}"
 fi
index bccd00b26d945c7f19e478c1e4c9efde3def1fa1..3c397ae58bedb666780c1096e07f364e930c580f 100644 (file)
@@ -80,7 +80,9 @@
                                        </h:panelGroup>
 
                                        <h:panelGroup styleClass="error-container" layout="block">
-                                               <p:growl autoUpdate="true" showDetail="true" sticky="true" />
+                                               <p:growl showDetail="true" sticky="true">
+                                                       <p:autoUpdate />
+                                               </p:growl>
 
                                                <p:ajaxExceptionHandler
                                                        type="javax.faces.application.ViewExpiredException"
index db76dc5cd8f1cf1de357513f07dba411da0d5d00..05e09b101a6762c665f5c21370a2de54b3cd7ae0 100644 (file)
@@ -1,11 +1,13 @@
 <?xml version="1.0" encoding="UTF-8" ?>
-<ui:composition template="/WEB-INF/templates/guest/guest_base.tpl"
-                               xmlns="http://www.w3.org/1999/xhtml"
-                               xmlns:core="http://mxchange.org/jsf/core/widgets"
-                               xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
-                               xmlns:h="http://xmlns.jcp.org/jsf/html"
-                               xmlns:f="http://xmlns.jcp.org/jsf/core"
-                               xmlns:p="http://primefaces.org/ui">
+<ui:composition
+       template="/WEB-INF/templates/guest/guest_base.tpl"
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:core="http://mxchange.org/jsf/core/widgets"
+       xmlns:validator="http://mxchange.org/jsf/core/validators"
+       xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+       xmlns:h="http://xmlns.jcp.org/jsf/html"
+       xmlns:f="http://xmlns.jcp.org/jsf/core"
+       xmlns:p="http://primefaces.org/ui">
 
        <ui:define name="document_guest_title">
                <h:outputText value="#{msg.PAGE_TITLE_INDEX_RESEND_LINK}" />
@@ -36,7 +38,7 @@
 
                                                <div class="table-right">
                                                        <p:inputText id="emailAddress" size="20" maxlength="255" value="#{userResendConfirmationController.emailAddress}" required="true" requiredMessage="#{msg.EMAIL_ADDRESS_NOT_ENTERED}">
-                                                               <f:validator validatorId="EmailAddressValidator" />
+                                                               <validator:emailAddressValidator />
                                                        </p:inputText>
                                                </div>
                                        </h:panelGroup>