Roland Häder [Tue, 25 Apr 2017 11:21:53 +0000 (13:21 +0200)]
Please cherry-pick:
- WARNING: You have to update project name, maybe one day this will be moved out
to properties file?
- updated templates as they are long out-dated
- added missing templates, a lot new has been added
Roland Häder [Sat, 22 Apr 2017 20:04:26 +0000 (22:04 +0200)]
Please cherry-pick:
- Let's always call super constructor (not the default one, of course), maybe
one day there will be something added
- sorted members a bit
- some constructors still contain EJB-lookup code, moved to init()
(@PostConstruct) method
Roland Häder [Fri, 21 Apr 2017 20:17:19 +0000 (22:17 +0200)]
Please cherry-pick:
- let's move EJB-lookup into post-construct method and out of constructors as
this seems to tricker a bug in Glassfish:
https://github.com/payara/Payara/issues/1035
Roland Häder [Thu, 20 Apr 2017 19:58:46 +0000 (21:58 +0200)]
Please cherry-pick:
- passwords for account creation are now optional as random passwords can be
generated
- added required-message for email-address and user name to not have such
"strange" messages for the user
Roland Häder [Thu, 20 Apr 2017 15:53:23 +0000 (17:53 +0200)]
Please cherry-pick:
- removed event-observing methods from interfaces as they should not be called
from other beans, but only invoked when the specific event has been fired.
- remember these guide-lines:
1) Use interface for type-hinting objects, not direct class name.
2) All methods in interface are considered as callable (by you)
3) If you still need public methods (like it is needed for @PostConstruct or
@Observes) don't add that method to interface.
4) This way, the interface is clean and simple (KISS), no exceptions (of,
course thrown ...)!
Roland Häder [Thu, 20 Apr 2017 08:39:51 +0000 (10:39 +0200)]
Please cherry-pick:
- don't get local logger here, local invokations are CDI, but here JNDI would be
needed
- maybe old-feshioned System.out.println() ?
Roland Häder [Wed, 19 Apr 2017 14:52:47 +0000 (16:52 +0200)]
Continued porting templates:
- added a lot missing templates which are used for handling fax/land-line
numbers
- no more cellphone, now all mobiles are welcome ...
- renamed files as they belong to user (not generic)
Roland Häder [Wed, 19 Apr 2017 12:24:14 +0000 (14:24 +0200)]
Cleanups:
- added id for menu include (maybe more follow? or I revert all these?)
- removed no longer used i18n strings
- user_menu is no longer included in page template, only in user_base.xhtml
Roland Häder [Sun, 16 Apr 2017 09:23:47 +0000 (11:23 +0200)]
Please cherry-pick:
- renamed login_change_* to login_user_change_* as these are user-specific
changes
- also renamed i18n strings
- renamed method in email-change controller as it is user-specific, too
- deleted left-over index.xhtml
Roland Haeder [Tue, 11 Apr 2017 09:21:32 +0000 (11:21 +0200)]
Nope. keep these names unified, but class names project-dependent so the IDE is not getting confused which implementation (if you have all projects loaded into it) is meant.
Roland Haeder [Tue, 11 Apr 2017 09:13:48 +0000 (11:13 +0200)]
I know, I miss-use ui:fragment here but it seems to do what I want:
- when "rendered" is false, don't show content of the whole tag
- when "rendered" is true, show content of the whole tag
So far, other tags did not work and not even with ui:define and then rendered="#{featureController.isFeatureEnaled('some_feature')#}"
on ui:define.
As long as there is no other tag that has the same behavior, I stick
with ui:fragment.
Roland Häder [Mon, 5 Sep 2016 15:10:18 +0000 (17:10 +0200)]
Please cherry-pick:
- added feature switch "user_registraion_in_index" which controls whether the registration page is in index (true) or own page (false).
- please put your index stuff in guest_index.tpl for now
- maybe later this will be changed to a datbase-driven CMS?
Roland Haeder [Sat, 3 Sep 2016 15:05:02 +0000 (17:05 +0200)]
Please cherry-pick:
- cleanups on templates such as ...
- adding h:outputText
- adding error_container with h:panelGroup and h:message
- removed no longer used template as it has been splitted
Roland Häder [Fri, 2 Sep 2016 15:58:18 +0000 (17:58 +0200)]
Please cherry-pick:
- added check if password has minimum strength in user controller
- introduced isWeakPassword() which does the test
- added context parameter min_user_password_score for minimum score (please alter this to your needs)
- always clear entered passwords when a JSF message is being output (something went wrong)
- added missing i18n string
Roland Häder [Thu, 1 Sep 2016 15:48:25 +0000 (17:48 +0200)]
Please cherry-pick:
- moved error messages outside table_row container
- added error message for email address in admin contact data form
- replaced FacetException with a nice JSF message