throw new FaceletException("Not all required fields are set."); //NOI18N
} else if (!this.userLoginController.ifCurrentPasswordMatches()) {
// Password not matching
- this.showFacesMessage("login_change_personal_form:currentPassword", new UserPasswordMismatchException(this.userLoginController.getLoggedInUser())); //NOI18N
+ this.showFacesMessage("form_login_change_personal:currentPassword", new UserPasswordMismatchException(this.userLoginController.getLoggedInUser())); //NOI18N
return ""; //NOI18N
}
throw new FaceletException("Email address 1/2 are mismatching."); //NOI18N
} else if (!this.userLoginController.ifCurrentPasswordMatches()) {
// Password not matching
- this.showFacesMessage("login_change_email_address_form:currentPassword", new UserPasswordMismatchException(this.userLoginController.getLoggedInUser())); //NOI18N
+ this.showFacesMessage("form_login_change_email_address:currentPassword", new UserPasswordMismatchException(this.userLoginController.getLoggedInUser())); //NOI18N
return ""; //NOI18N
}
// All fine
return "login"; //NOI18N
- } catch (final UserNotFoundException | UserStatusLockedException | UserStatusUnconfirmedException | UserPasswordMismatchException ex) {
- // Throw again
- throw new FaceletException(ex);
+ } catch (final UserNotFoundException | UserStatusLockedException | UserStatusUnconfirmedException ex) {
+ // Show JSF message
+ this.showFacesMessage("form_user_login:userName", ex); //NOI18N
+ return ""; //NOI18N
+ } catch (final UserPasswordMismatchException ex) {
+ // Show JSF message
+ this.showFacesMessage("form_user_login:userPassword", ex); //NOI18N
+ return ""; //NOI18N
}
}
// Is the provider already created?
if (this.isMobileProviderCreated(mobileProvider)) {
// Then throw exception
- this.showFacesMessage("add_mobile_provider_form:providerDialPrefix", new MobileProviderAlreadyAddedException(mobileProvider)); //NOI18N
+ this.showFacesMessage("form_add_mobile_provider:providerDialPrefix", new MobileProviderAlreadyAddedException(mobileProvider)); //NOI18N
return ""; //NOI18N
}
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <h:form id="add_contact_cellphone">
+ <h:form id="form_add_contact_cellphone">
</h:form>
</ui:composition>
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <h:form id="locale_selection">
+ <h:form id="form_locale_selection">
<h:selectOneMenu id="language_selection" value="#{localizationController.language}" onchange="submit()">
<f:selectItem itemLabel="#{msg.SELECT_LANGUAGE}" noSelectionOption="true" />
<f:selectItems value="#{localizationController.selectableLocalizations}" var="l" itemValue="#{l}" itemLabel="#{msg[l.toString().toUpperCase()]}" />
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<div id="user_login_content">
- <h:form id="login_form">
+ <h:form id="form_user_login">
<div class="table">
<div class="table_header">
#{msg.GUEST_ENTER_USER_LOGIN_DATA_TITLE}
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <h:form id="register_page1_form">
+ <h:form id="form_register_page1">
<div class="table">
<div class="table_header">
#{msg.GUEST_REGISTRATION_PAGE1_TITLE}
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <h:form id="register_page2_form">
+ <h:form id="form_register_page2">
<div class="table">
<div class="table_header">
#{msg.GUEST_REGISTRATION_PAGE2_TITLE}
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <h:form id="register_single_form">
+ <h:form id="form_register_single">
<div class="table">
<div class="table_header">
<h:outputText value="#{msg.GUEST_REGISTRATION_TITLE}" />
--- /dev/null
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
+ lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+ xmlns:h="http://xmlns.jcp.org/jsf/html"
+ xmlns:f="http://xmlns.jcp.org/jsf/core"
+ >
+
+ <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
+ <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_LOGOUT}</ui:define>
+
+ <ui:define name="content_header">
+ #{msg.CONTENT_TITLE_ADMIN_LOGOUT}
+ </ui:define>
+
+ <ui:define name="content">
+ <h:form id="form_admin_logout">
+ <div class="table">
+ <div class="table_header">
+ <h:outputText value="#{msg.ADMIN_LOGOUT_TITLE}" />
+ </div>
+
+ <div class="para">
+ <h:outputText value="#{msg.ADMIN_LOGOUT_NOTICE}" />
+ </div>
+
+ <div class="table_footer">
+ <h:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
+ <h:commandButton styleClass="submit" type="submit" action="#{userLoginController.doAdminLogout()}" value="#{msg.BUTTON_USER_LOGOUT}" />
+ </div>
+ </div>
+ </h:form>
+ </ui:define>
+ </ui:composition>
+</html>
<ui:define name="content">
<h:outputText styleClass="errors" value="#{msg.ERROR_CONTACT_ID_NOT_FOUND}" rendered="#{empty beanHelper.contact}" />
- <h:form id="admin_edit_user" rendered="#{not empty beanHelper.contact}">
+ <h:form id="form_admin_edit_user" rendered="#{not empty beanHelper.contact}">
<div class="table">
<div class="table_header">
<h:outputFormat value="#{msg.ADMIN_DELETE_CONTACT_TITLE}">
<ui:define name="content">
<h:outputText styleClass="errors" value="#{msg.ERROR_CONTACT_ID_NOT_FOUND}" rendered="#{empty beanHelper.contact}" />
- <h:form id="admin_edit_user" rendered="#{not empty beanHelper.contact}">
+ <h:form id="form_admin_edit_user" rendered="#{not empty beanHelper.contact}">
<div class="table">
<div class="table_header">
<h:outputFormat value="#{msg.ADMIN_EDIT_CONTACT_TITLE}">
</h:dataTable>
<div class="table_medium">
- <h:form id="admin_add_contact">
+ <h:form id="form_admin_add_contact">
<div class="table_header">
<h:outputText value="#{msg.ADMIN_ADD_CONTACT_TITLE}" />
</div>
</h:column>
</h:dataTable>
- <h:form id="add_mobile_provider_form">
+ <h:form id="form_add_mobile_provider">
<div class="table_medium">
<div class="table_header">
<h:outputText value="#{msg.ADMIN_ADD_MOBILE_PROVIDER_TITLE}" />
<ui:define name="content">
<h:outputText styleClass="errors" value="#{msg.ERROR_USER_ID_NOT_FOUND}" rendered="#{empty beanHelper.user}" />
- Here goes your content.
+ <h:form id="form_admin_user_unlock">
+
+ </h:form>
</ui:define>
</ui:composition>
</html>
<ui:define name="content">
<ui:fragment rendered="#{userController.isUserNameRequired()}">
<div class="para" id="user_lost_password_content">
- <h:form id="lost_password_form">
+ <h:form id="form_lost_password">
<div class="table">
<div class="table_header">
<h:outputText value="#{msg.GUEST_LOST_PASSWORD_TITLE}" />
<h:outputText value="#{msg.LOGIN_CHANGE_EMAIL_ADDRESS_TITLE}" />
</div>
- <h:form id="login_change_email_address_form">
+ <h:form id="form_login_change_email_address">
<div class="para">
<fieldset id="change_email">
<legend title="#{msg.LOGIN_CHANGE_EMAIL_LEGEND_TITLE}">
<html
lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
- xmlns:h="http://xmlns.jcp.org/jsf/html"
- xmlns:f="http://xmlns.jcp.org/jsf/core"
- >
+ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+ xmlns:h="http://xmlns.jcp.org/jsf/html"
+ xmlns:f="http://xmlns.jcp.org/jsf/core"
+ >
<ui:composition template="/WEB-INF/templates/login/user/user_base.tpl">
<ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_CHANGE_PASSWORD}</ui:define>
<h:outputText value="#{msg.LOGIN_CHANGE_PERSONAL_DATA_TITLE}" />
</div>
- <h:form id="login_change_personal_form">
+ <h:form id="form_login_change_personal">
<ui:include src="/WEB-INF/templates/contact/form_contact_data.tpl" />
<ui:include src="/WEB-INF/templates/login/user/user_enter_current_password.tpl" />
--- /dev/null
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
+ lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+ xmlns:h="http://xmlns.jcp.org/jsf/html"
+ xmlns:f="http://xmlns.jcp.org/jsf/core"
+ >
+
+ <ui:composition template="/WEB-INF/templates/login/user/user_base.tpl">
+ <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_USER_LOGOUT}</ui:define>
+
+ <ui:define name="content_header">
+ #{msg.CONTENT_TITLE_LOGIN_USER_LOGOUT}
+ </ui:define>
+
+ <ui:define name="content">
+ <h:form id="form_user_logout" rendered="#{userLoginController.isUserLoggedIn()}">
+ <div class="table">
+ <div class="table_header">
+ <h:outputText value="#{msg.LOGIN_USER_LOGOUT_TITLE}" />
+ </div>
+
+ <div class="para">
+ <h:outputText value="#{msg.LOGIN_USER_LOGOUT_NOTICE}" />
+ </div>
+
+ <div class="table_footer">
+ <h:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
+ <h:commandButton styleClass="submit" type="submit" action="#{userLoginController.doUserLogout()}" value="#{msg.BUTTON_USER_LOGOUT}" />
+ </div>
+ </div>
+ </h:form>
+
+ <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
+ <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
+ </ui:fragment>
+ </ui:define>
+ </ui:composition>
+</html>