Details
Description
In my portlet I have code like this in the JSPX:
<ice:panelGrid>
<!-- dateOfBirth -->
<ice:panelGroup styleClass="portlet-form-field-label">
<ice:outputText style="color: red;" value="*"/>
<ice:outputLabel for="dateOfBirth" value="#{JobApplicationMsgs.dateOfBirth}"/>
</ice:panelGroup>
<ice:selectInputDate id="dateOfBirth" alt="#{JobApplicationMsgs.dateOfBirth}" autocomplete="true" popupDateFormat="#{Edit.preferences['dateFormat']}" renderAsPopup="true" required="true" style="" styleClass="portlet-form-input-field" value="#{JobApplication.dateOfBirth}">
<f:convertDateTime pattern="#{Edit.preferences['dateFormat']}"/>
</ice:selectInputDate>
<ice:message errorClass="portlet-msg-error" for="dateOfBirth"/>
</ice:panelGrid>
And when I tab-out of the <ice:selectInputDate/> component, the required validator does not fire.
Thankfully, it does fire when I click the Submit button for the <ice:form/>.
<ice:panelGrid>
<!-- dateOfBirth -->
<ice:panelGroup styleClass="portlet-form-field-label">
<ice:outputText style="color: red;" value="*"/>
<ice:outputLabel for="dateOfBirth" value="#{JobApplicationMsgs.dateOfBirth}"/>
</ice:panelGroup>
<ice:selectInputDate id="dateOfBirth" alt="#{JobApplicationMsgs.dateOfBirth}" autocomplete="true" popupDateFormat="#{Edit.preferences['dateFormat']}" renderAsPopup="true" required="true" style="" styleClass="portlet-form-input-field" value="#{JobApplication.dateOfBirth}">
<f:convertDateTime pattern="#{Edit.preferences['dateFormat']}"/>
</ice:selectInputDate>
<ice:message errorClass="portlet-msg-error" for="dateOfBirth"/>
</ice:panelGrid>
And when I tab-out of the <ice:selectInputDate/> component, the required validator does not fire.
Thankfully, it does fire when I click the Submit button for the <ice:form/>.
Activity
Neil Griffin
created issue -
Ken Fyten
made changes -
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 1.7 [ 10080 ] | |
Assignee | Mark Collette [ mark.collette ] |
Mark Collette
made changes -
Summary | <ice:selectInputDate/> does not fire the required validator when tabbing-out of the rendered <input/> field | selectInputDate does not fire validator when tabbing-out of the rendered <input/> field |
Mark Collette
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Fix Version/s | 1.7DR#1 [ 10100 ] | |
Fix Version/s | 1.7 [ 10080 ] | |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 1.6.2 [ 10111 ] |
Ken Fyten
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Mark Collette
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 1.7 [ 10080 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee | Mark Collette [ mark.collette ] |
This was fixed by
ICE-2150. Now, when you tab out of the text input field, it will do the validation. Basically, anything that causes the text input field to lose focus will result in validation.