From: Roland Haeder <roland@mxchange.org>
Date: Thu, 15 Oct 2015 11:45:28 +0000 (+0200)
Subject: introduced isShareeUserIdEmpty() as EL code seems not to handle previous one
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e42a8be3870c6c1aabfad35afe5588e304a65b69;p=addressbook-war.git

introduced isShareeUserIdEmpty() as EL code seems not to handle previous one
Signed-off-by:Roland Häder <roland@mxchange.org>
---

diff --git a/lib/jcoreee.jar b/lib/jcoreee.jar
index 6ea5dee8..176cc9d7 100644
Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ
diff --git a/src/java/org/mxchange/addressbook/beans/shares/SharesWebBean.java b/src/java/org/mxchange/addressbook/beans/shares/SharesWebBean.java
index b75df50e..9041da43 100644
--- a/src/java/org/mxchange/addressbook/beans/shares/SharesWebBean.java
+++ b/src/java/org/mxchange/addressbook/beans/shares/SharesWebBean.java
@@ -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
diff --git a/src/java/org/mxchange/addressbook/beans/shares/SharesWebController.java b/src/java/org/mxchange/addressbook/beans/shares/SharesWebController.java
index f7b90a52..3433c634 100644
--- a/src/java/org/mxchange/addressbook/beans/shares/SharesWebController.java
+++ b/src/java/org/mxchange/addressbook/beans/shares/SharesWebController.java
@@ -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 ();
 }
diff --git a/web/login/login_list_sharing_addressbooks.xhtml b/web/login/login_list_sharing_addressbooks.xhtml
index 1f3be67b..c8649da8 100644
--- a/web/login/login_list_sharing_addressbooks.xhtml
+++ b/web/login/login_list_sharing_addressbooks.xhtml
@@ -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>
diff --git a/web/user/user_profile.xhtml b/web/user/user_profile.xhtml
index 4fd73c13..a0b9c664 100644
--- a/web/user/user_profile.xhtml
+++ b/web/user/user_profile.xhtml
@@ -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>