}
@Override
- public void afterUserLogin (@Observes final ObservableUserLoggedInEvent event) {
+ public void afterUserLoginEvent (@Observes final ObservableUserLoggedInEvent event) {
// event should not be null
if (null == event) {
// Throw NPE
* <p>
* @param event Event instance
*/
- void afterUserLogin (final ObservableUserLoggedInEvent event);
+ void afterUserLoginEvent (final ObservableUserLoggedInEvent event);
/**
* Creates an instance from all properties
private Locale locale;
@Override
- public void afterUserLogin (@Observes final ObservableUserLoggedInEvent event) {
+ public void afterUserLoginEvent (@Observes final ObservableUserLoggedInEvent event) {
// event should not be null
if (null == event) {
// Throw NPE
throw new IllegalArgumentException(MessageFormat.format("userId of user={0} is not valid: {1}", event.getLoggedInUser(), event.getLoggedInUser().getUserId())); //NOI18N
}
- // Set locale here
- this.setLocale(event.getLoggedInUser().getUserLocale());
+ // Is the locale set?
+ if (event.getLoggedInUser().getUserLocale() instanceof Locale) {
+ // Set locale here
+ this.setLocale(event.getLoggedInUser().getUserLocale());
+ }
}
@Override
- public void afterUserLogout (@Observes final ObservableUserLogoutEvent event) {
+ public void afterUserLogoutEvent (@Observes final ObservableUserLogoutEvent event) {
// event should not be null
if (null == event) {
// Throw NPE
* <p>
* @param event Event instance
*/
- void afterUserLogin (final ObservableUserLoggedInEvent event);
+ void afterUserLoginEvent (final ObservableUserLoggedInEvent event);
/**
* Event observer for logged-out user
* <p>
* @param event Event instance
*/
- void afterUserLogout (final ObservableUserLogoutEvent event);
+ void afterUserLogoutEvent (final ObservableUserLogoutEvent event);
/**
* Getter for locale
}
@Override
- public void afterUserLogin (@Observes final ObservableUserLoggedInEvent event) {
+ public void afterUserLoginEvent (@Observes final ObservableUserLoggedInEvent event) {
// Trace message
//* NOISY-DEBUG: */ System.out.println(MessageFormat.format("UserWebBean:afterUserLogin: event={0} - CALLED!", event)); //NOI18N
* <p>
* @param event Event instance
*/
- void afterUserLogin (final ObservableUserLoggedInEvent event);
+ void afterUserLoginEvent (final ObservableUserLoggedInEvent event);
/**
* All users
</ui:define>
<ui:define name="content">
- Here goes your content.
+ <!-- @TODO Here goes your content. //-->
</ui:define>
</ui:composition>
</html>
</ui:define>
<ui:define name="content">
- Here goes your content.
+ <!-- @TODO Here goes your content. //-->
</ui:define>
</ui:composition>
</html>
</ui:define>
<ui:define name="content">
- Here goes your content.
+ <!-- @TODO Here goes your content. //-->
</ui:define>
</ui:composition>
</html>
</ui:define>
<ui:define name="content">
- Here goes your content.
+ <!-- @TODO Here goes your content. //-->
</ui:define>
<ui:define name="footer">
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- Here goes your content.
+ <!-- @TODO Here goes your content. //-->
</ui:composition>
</ui:define>
<ui:define name="content">
- Here goes your content.
+ <!-- @TODO Here goes your content. //-->
</ui:define>
</ui:composition>
</html>
</ui:define>
<ui:define name="content">
- Here goes your content.
+ <!-- @TODO Here goes your content. //-->
</ui:define>
</ui:composition>
</html>
</ui:define>
<ui:define name="content">
- Here goes your content.
+ <!-- @TODO Here goes your content. //-->
</ui:define>
</ui:composition>
</html>
</ui:define>
<ui:define name="content">
- Here goes your content.
+ <!-- @TODO Here goes your content. //-->
</ui:define>
</ui:composition>
</html>
</ui:define>
<ui:define name="content">
- Here goes your content.
+ <!-- @TODO Here goes your content. //-->
</ui:define>
</ui:composition>
</html>
</ui:define>
<ui:define name="content">
- Here goes your content.
+ <!-- @TODO Here goes your content. //-->
</ui:define>
</ui:composition>
</html>
</ui:define>
<ui:define name="content">
- Here goes your content.
+ <!-- @TODO Here goes your content. //-->
</ui:define>
</ui:composition>
</html>
<ui:define name="content">
<ui:fragment rendered="#{userLoginController.isUserLoggedIn() and (not userLoginController.ifUserMustChangePassword() or not featureController.isFeatureEnabled('user_must_change_password'))}">
- Here goes your content.
+ <!-- @TODO Here goes your content. //-->
</ui:fragment>
<ui:fragment rendered="#{userLoginController.ifUserMustChangePassword()}">
<ui:define name="content">
<ui:fragment rendered="#{userLoginController.isUserLoggedIn()}">
<ui:fragment rendered="#{shareController.isShareeUserIdSet()}">
- Here goes your content.
+ <!-- @TODO Here goes your content. //-->
</ui:fragment>
<ui:fragment rendered="#{shareController.isShareeUserIdEmpty()}">
<ui:define name="content">
<ui:fragment rendered="#{userLoginController.isUserLoggedIn()}">
- Here goes your content.
+ <!-- @TODO Here goes your content. //-->
</ui:fragment>
<ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">