Roland Haeder [Mon, 4 Apr 2016 20:12:08 +0000 (22:12 +0200)]
Localization support almost finished:
- Locale setting from browser comes first
- User selected locale from web interfaces overrides it (in session bean)
TODO/FIXME:
- Add locale support to juser-core
- Still the selected locale is not re-selected in box
Roland Haeder [Mon, 4 Apr 2016 16:47:37 +0000 (18:47 +0200)]
Continued with localization support:
- added form template for localization support (still static, maybe can be output over bean's method?)
- added missing methods (not classical getter/setter)
Roland Haeder [Tue, 8 Mar 2016 21:06:59 +0000 (22:06 +0100)]
Continued a bit:
- renamed method
- the password validator is currently not working as it currently need the web controller, not the EJB
- updated jar(s)
Roland Haeder [Sat, 5 Mar 2016 21:02:47 +0000 (22:02 +0100)]
Continued with "change personal data":
- added generic template message_box.tpl
- added generic page login_data_saved.xhtml
- added missing navigation rules from login_change_foo.xhtml -> login_data_saved.xhtml
- added some new language strings
- added CSS classes for message box template
- changing email address requires you to enter twice your new email address (displaying old is missing)
Roland Haeder [Sat, 5 Mar 2016 15:34:15 +0000 (16:34 +0100)]
Continued with updating personal data:
- added user password validator (from jjobs-war)
- added missing message strings
- added check if all required fields are set
- added preparing user instance and sending it to the EJB
- doChangeFoo() all need to return a string for next target page (not added yet)
- updated jar(s)
Roland Haeder [Fri, 4 Mar 2016 20:32:09 +0000 (21:32 +0100)]
Introduced new template + renamed language constant + form field:
- introduced login_enter_current_password.tpl to reduce redundant template code
- changed language string to reflect it's purpose (current password)
- renamed form field "password" to "currentPassword" to reflect it's purpose, too
Roland Haeder [Fri, 4 Mar 2016 20:08:31 +0000 (21:08 +0100)]
Some improvements:
- added currentPassword field in loginController
- simply copy all user data to the userController instance and you can use it again in forms
Roland Haeder [Fri, 4 Mar 2016 19:48:40 +0000 (20:48 +0100)]
Splitted edit_user_data into 3 new sub actions + added logged-in check:
- new template user_not_logged_in.tpl added which shows a message if the user is not logged-in and tries to access a login-only page
- added login_change_email_address.xhtml for changing email address
- added login_change_password.xhtml for changing password
- added login_change_personal_data.xhtml for changing personal data
- login_edit_address.xhtml is now no longer needed
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>