Roland Haeder [Sat, 5 Mar 2016 21:02:24 +0000 (22:02 +0100)]
Continued with "change personal data":
- updating the user instance didn't work the previous way, first you need to copy the loginController.loggedInUser instance and then you can update all fields on it
- 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:33:26 +0000 (16:33 +0100)]
Continued with updating personal data:
- 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 [Sat, 5 Mar 2016 15:09:36 +0000 (16:09 +0100)]
Continued with user profile data:
- renamed changeFoo() to doChangeFoo() to match with naming convention
- added doChangePersonalData() which throws a checked exception
- that method does currently only check if the user is logged-in and if the password matches
- the resulting error message would be not user-friendly, so better added a validator which outputs a new localizable message
- added method ifCurrentPasswordMatches() which uses UserUtils to validate the entered password
- renaming interface applied
- updated juser-core.jar
- added jcoreee.jar
Roland Haeder [Fri, 4 Mar 2016 20:32:12 +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:06:25 +0000 (21:06 +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:36 +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 [Wed, 2 Mar 2016 19:45:50 +0000 (20:45 +0100)]
Continued with separation from addressbook project:
- updated packages to own jjobs packages (not addressbook anymore)
- removed addressbook-lib as we now have own jjobs-lib
Roland Haeder [Mon, 15 Feb 2016 20:35:12 +0000 (21:35 +0100)]
c:set is a trap:
- c:set is being executed in an other life-cycle that when h:dataTable is
rendered
- this causes a null value always being set in the target (backing) bean
- instead you need to use ui:param within ui:include and use #{foo} for
accessing it, even when your IDE is not showing it (as in that file's scope
it doesn't "know" about the parameter).