]> git.mxchange.org Git - jfinancials-war.git/commitdiff
introduced isShareeUserIdEmpty() as EL code seems not to handle previous one
authorRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 11:45:28 +0000 (13:45 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 11:45:28 +0000 (13:45 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcoreee.jar
src/java/org/mxchange/addressbook/beans/shares/SharesWebBean.java
src/java/org/mxchange/addressbook/beans/shares/SharesWebController.java
web/login/login_list_sharing_addressbooks.xhtml
web/user/user_profile.xhtml

index 6ea5dee81a9fef485994cf2c6831b836dd543c7d..176cc9d7eceef50e5e7f37bd45f4b9cd4b310799 100644 (file)
Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ
index b75df50e32f7865b5cdcb5516bcebe1bb3350447..9041da43c8d75344dd64a4eee7c6427d261d3478 100644 (file)
@@ -56,7 +56,6 @@ public class SharesWebBean implements SharesWebController {
         */
        private SharedAddressbooksSessionBeanRemote shareBean;
 
-
        /**
         * User id of sharee
         */
@@ -94,6 +93,11 @@ public class SharesWebBean implements SharesWebController {
                return ((this.getShareeUserId() instanceof Long) && (this.getShareeUserId() > 0));
        }
 
+       @Override
+       public boolean isShareeUserIdEmpty () {
+               return (!this.isShareeUserIdSet());
+       }
+
        @Override
        public boolean isSharingAddressbooks () {
                // Only to be called for logged-in users
index f7b90a528fbd8a835bbe07c4033a3c96c0f05bf8..3433c6341fbecf3d7f7e6830e1f1be0ebf6b99cf 100644 (file)
@@ -52,4 +52,10 @@ public interface SharesWebController extends Serializable {
         * @return Whether the sharee's user id is set
         */
        boolean isShareeUserIdSet ();
+
+       /**
+        * Checks if the sharee's user id is empty.
+        * @return Whether the sharee's user id is empty.
+        */
+       boolean isShareeUserIdEmpty ();
 }
index 1f3be67bb2ebb6d51027e4e3b3a7e4242c671b7c..c8649da8814d25a52c62ad1a35ee646b2aaa07c8 100644 (file)
@@ -24,7 +24,7 @@
                        Here goes your content.
                </ui:define>
 
-               <ui:define name="content" rendered="#{shareController.isShareeUserIdSet() == false}">
+               <ui:define name="content" rendered="#{shareController.isShareeUserIdEmpty()}">
                        <ui:include src="/WEB-INF/templates/generic/userid_error.tpl" />
                </ui:define>
        </ui:composition>
index 4fd73c136de0c7ce9be1b552d28d28180603f2d3..a0b9c66444eae81a6d35db47778e44de7b53d9c7 100644 (file)
@@ -24,7 +24,7 @@
                        Here goes your content.
                </ui:define>
 
-               <ui:define name="content" rendered="#{shareController.isShareeUserIdSet() == false}">
+               <ui:define name="content" rendered="#{shareController.isShareeUserIdEmpty()}">
                        <ui:include src="/WEB-INF/templates/generic/userid_error.tpl" />
                </ui:define>
        </ui:composition>