Signed-off-by:Roland Häder <roland@mxchange.org>
@PostConstruct
public void init () {
+ // Check conditions
+ if (!this.loginController.isUserLoggedIn()) {
+ // No, then throw exception
+ throw new FaceletException("This method can only be called as logged-in user."); //NOI18N
+ }
+
// Init share list
this.sharedAddressbooks = this.shareBean.allSharedAddressbooks(this.loginController.getLoggedInUser());
}
<f:facet name="header">#{msg.SHARED_ADDRESSBOOK}</f:facet>
<h:link outcome="login_show_addressbook" title="#{msg.LINK_LOGIN_SHOW_ADDRESS_BOOK_TITLE}">
- <f:param name="addressbook_id" value="#{addressbook.addressbookId}" />
+ <f:param name="addressbook_id" value="#{share.shareAddressbook.addressbookId}" />
<h:outputText id="addressbookName" value="#{share.shareAddressbook.addressbookName}" title="#{msg.SHARED_ADDRESSBOOK_TITLE}" />
</h:link>
</h:column>