- 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
Signed-off-by: Roland Häder <roland@mxchange.org>
<h:form id="form_user_login" rendered="#{featureController.isFeatureEnabled('user_name_required')}">
<h:panelGroup styleClass="table" layout="block">
<div class="table_header">
- #{msg.GUEST_ENTER_USER_LOGIN_DATA_TITLE}
+ <h:outputText value="#{msg.GUEST_ENTER_USER_LOGIN_DATA_TITLE}" />
</div>
<fieldset class="fieldset" id="login_data">
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <h:form id="form_register_page1">
+ <h:form id="form_register_page1" rendered="#{featureController.isFeatureEnabled('user_registration')}">
<h:panelGroup styleClass="table_medium" layout="block">
<div class="table_header">
- #{msg.GUEST_REGISTRATION_PAGE1_TITLE}
+ <h:outputText value="#{msg.GUEST_REGISTRATION_PAGE1_TITLE}" />
</div>
<div class="para">
</div>
<div class="table_right_medium">
- <h:inputSecret styleClass="input" id="userPassword" size="10" maxlength="255" value="#{userController.userPassword}" required="true" />
+ <h:inputSecret styleClass="input" id="userPassword" size="10" maxlength="255" value="#{userController.userPassword}" />
</div>
<div class="clear"></div>
</div>
+ <h:panelGroup styleClass="error_container" layout="block">
+ <h:message for="userPassword" errorClass="errors" fatalClass="errors" warnClass="errors" />
+ </h:panelGroup>
+
<div class="table_row">
<div class="table_left_medium">
<h:outputLabel for="userPasswordRepeat" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD_REPEAT}" />
</div>
<div class="table_right_medium">
- <h:inputSecret styleClass="input" id="userPasswordRepeat" size="10" maxlength="255" value="#{userController.userPasswordRepeat}" required="true" />
+ <h:inputSecret styleClass="input" id="userPasswordRepeat" size="10" maxlength="255" value="#{userController.userPasswordRepeat}" />
</div>
<div class="clear"></div>
</div>
+ <h:panelGroup styleClass="error_container" layout="block">
+ <h:message for="userPasswordRepeat" errorClass="errors" fatalClass="errors" warnClass="errors" />
+ </h:panelGroup>
+
<div class="para notice">
<h:outputText value="#{msg.GUEST_REGISTRATION_USER_NAME_NOTICE}" />
</div>
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <h:form id="form_register_page2">
+ <h:form id="form_register_page2" rendered="#{featureController.isFeatureEnabled('user_registration')}">
<h:panelGroup styleClass="table_medium" layout="block">
<div class="table_header">
<h:outputText value="#{msg.GUEST_REGISTRATION_PAGE2_TITLE}" />
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <h:form id="form_register_single">
+ <h:form id="form_register_single" rendered="#{featureController.isFeatureEnabled('user_registration')}">
<h:panelGroup styleClass="table_medium" layout="block">
<div class="table_header">
<h:outputText value="#{msg.GUEST_REGISTRATION_TITLE}" />
<div class="clear"></div>
</div>
+ <h:panelGroup styleClass="error_container" layout="block">
+ <h:message for="userPassword" errorClass="errors" fatalClass="errors" warnClass="errors" />
+ </h:panelGroup>
+
<div class="table_row">
<div class="table_left">
<h:outputLabel for="userPasswordRepeat" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD_REPEAT}" />
<div class="clear"></div>
</div>
+ <h:panelGroup styleClass="error_container" layout="block">
+ <h:message for="userPasswordRepeat" errorClass="errors" fatalClass="errors" warnClass="errors" />
+ </h:panelGroup>
+
<div class="para notice">
<h:outputText value="#{msg.GUEST_REGISTRATION_USER_NAME_NOTICE}" />
</div>