Roland Haeder [Tue, 20 Oct 2015 13:03:14 +0000 (15:03 +0200)]
Continued:
- No, also c:set is not right and previous also not. So how can I set a value in a bean from a template?
- moved some components to proper location
- added missing this.
- updated jar(s)
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 20 Oct 2015 10:40:20 +0000 (12:40 +0200)]
cleanup from JSTL:
- removed all JSTL usages as this mixes JSF with JSTL which more belongs to JSP
- used f:setPropertyActionListener to set the currently used user instance in profileController.user
- sorry that there is still ui:fragment around but I don't like/want overlong expressions in rendered attributes
- better throw IllegalStateException and not quietly return false in isOwnAddressbook() this method should only work when the user is logged-in
- improved some exception text
Roland Haeder [Tue, 20 Oct 2015 08:52:21 +0000 (10:52 +0200)]
Continued:
- rewrote isProfileLinkVisible() to not accept an instance and use the current (in bean set) instance instead
- well, don't use c:bla in your JSF pages
- updated jar(s)
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 19 Oct 2015 10:53:52 +0000 (12:53 +0200)]
Continued:
- renamed isNotInvisible() to isInvisible()
- added message on case if the user is invisible
- rewrote ui:fragment-abuse to c:choose, still a bit abusive to JSF, but better than ui:fragment
- added missing i18n strings
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 19 Oct 2015 09:06:02 +0000 (11:06 +0200)]
Continued:
- isAddressbookLoaded() also checks User instance + name
- added check before start of sharing address books if the owner and sharee are both not invisible
- added isUserNotInvisible(). EL code seems not handle negative check? :-(
- fixed check on user instance in template user_profile_link.tpl
- removed one ui:fragment as it can be attached to h:panelGrid, too
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 16 Oct 2015 20:02:36 +0000 (22:02 +0200)]
Continued:
- added/implemented bean method isProfileLinkVisibleById()
- sorted members a bit
- added bean property "user"
- injected user bean (controller)
- used above writes to lookup user id in database and get a user instance back, set in the bean
- added/implemented bean method isUserIdEmpty()
- added i18n for user profile mode and notices
- you can only use converter OR validator
-
- updated jar(s)
Roland Haeder [Fri, 16 Oct 2015 19:16:55 +0000 (21:16 +0200)]
Continued:
- moved converter classes to better locations: org.mxchange.addressbook.converter.foo is better :)
- added + used user converter to convert user id to User instance
- maybe c:choose/c:when/c:otherwise is better than ui:fragment? Still the page is a dummy
- updated jar(s)
Roland Haeder [Fri, 16 Oct 2015 17:12:21 +0000 (19:12 +0200)]
Continued:
- sorted members
- now that there are member-visible users the public user list doesn't fit to naming convention -> renamed
- injected login controller for checking if the user is logged-in
- for this the new business method allMemberPublicVisibleUsers() is called
- updated jar(s)
Roland Haeder [Fri, 16 Oct 2015 16:38:26 +0000 (18:38 +0200)]
Rewrite (unfinished):
- added beans for profile and profile modes
- added new template user_profile_link.xhtml for easy inclusion of profile links. Just handle over the whole User instance
- added new template profile_mode_selection_box.tpl for easy profile mode selection
- updated jar(s)
Roland Haeder [Fri, 16 Oct 2015 12:44:26 +0000 (14:44 +0200)]
Continued:
- added title for guest area in login_show_addressbook.xhtml (maybe be moved to user)
- fixed guest_title setting
- added missing i18n string
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 16 Oct 2015 12:12:41 +0000 (14:12 +0200)]
Continued:
- added bean method isAddressbookLoaded()
- rewrote login_show_addressbook.xhtml to only show data when the id is valid
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 16 Oct 2015 09:29:47 +0000 (11:29 +0200)]
Continued:
- added event for starting/ending sharing of address books, more observers can now easily join
- added started/ended observer which add/remove the share entry from the internal list
- added post-construct method init()
- method validateEvent() does the evnt validation process
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 16 Oct 2015 07:50:22 +0000 (09:50 +0200)]
Continued:
- moved bean (controller) method startSharing() with some open TODOs to proper bean
- updated template accordingly
Signed-off-by:Roland Häder <roland@mxchange.org>