}
// Check logged-in first, then invisibility
- return ((Objects.equals(this.getLoggedInUser().getUserProfileMode(), ProfileMode.INVISIBLE)));
+ return this.getLoggedInUser().getUserProfileMode().equals(ProfileMode.INVISIBLE);
}
}
LOGIN_NO_USER_NAME_MESSAGE=Sie haben keinen Benutzernamen eingegeben.
USER_NOT_LOGGED_IN=Sie sind nicht angemeldet.
LOGIN_OWN_PROFILE_INVISIBLE=Ihr Profil ist auf "durchsichtig" gestellt.
+ERROR_USER_INSTANCE_NOT_SET=Fehler: Benutzer-Instanz nicht gesetzt.
LOGIN_NO_USER_NAME_MESSAGE=You have entered no user name.
USER_NOT_LOGGED_IN=You are not signed in.
LOGIN_OWN_PROFILE_INVISIBLE=Your profile is set to "invisible".
+ERROR_USER_INSTANCE_NOT_SET=Error: User instance not set.
<to-view-id>/login/login_start_sharing_addressbook.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
+ <navigation-rule>
+ <from-view-id>/login/login_shared_addressbooks.xhtml</from-view-id>
+ <navigation-case>
+ <from-outcome>user_show_addressbook</from-outcome>
+ <to-view-id>/user/show_addressbook.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
</faces-config>
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
<c:choose>
- <c:when test="#{user != null and profileController.isProfileLinkVisible(user)}">
+ <c:when test="#{user == null}">
+ <h:outputText class="notice" value="#{msg.ERROR_USER_INSTANCE_NOT_SET}" />
+ </c:when>
+
+ <c:when test="profileController.isProfileLinkVisible(user)}">
<h:link id="userProfileLink" outcome="user_profile" title="#{msg.LINK_USER_PROFILE_TITLE}">
<h:outputText id="userName" value="#{user.userName}" />
<f:param name="userId" value="#{user.userId}" />
</c:when>
<c:otherwise>
- #{msg.USER_PROFILE_NOT_PUBLICLY_VISIBLE}
+ <h:outputText class="notice" value="#{msg.USER_PROFILE_NOT_PUBLICLY_VISIBLE}" />
</c:otherwise>
</c:choose>
</ui:composition>