ICEfaces
  1. ICEfaces
  2. ICE-1748

selectInputDate does not fire validator when tabbing-out of the rendered <input/> field

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6DR#5
    • Fix Version/s: 1.6.2, 1.7DR#1, 1.7
    • Component/s: None
    • Labels:
      None
    • Environment:
      Tomcat 6 / Liferay 4.3.0 (trunk) / IE7

      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/>.

        Activity

        Hide
        Mark Collette added a comment -

        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.

        Show
        Mark Collette added a comment - 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.
        Hide
        Mark Collette added a comment -

        Backported to ICEfaces 1.6.2, along with ICE-2150.

        Show
        Mark Collette added a comment - Backported to ICEfaces 1.6.2, along with ICE-2150 .
        Hide
        Neil Griffin added a comment -

        I'm still seeing this problem in ICEfaces 1.7RC1

        Show
        Neil Griffin added a comment - I'm still seeing this problem in ICEfaces 1.7RC1
        Hide
        Ken Fyten added a comment -

        When using a custom validator, it does fire. But the validator for required="true" does not fire.

        Show
        Ken Fyten added a comment - When using a custom validator, it does fire. But the validator for required="true" does not fire.
        Hide
        Ken Fyten added a comment -

        Opened a new JIRA for the required attribute issue: ICE-2927.

        Show
        Ken Fyten added a comment - Opened a new JIRA for the required attribute issue: ICE-2927 .

          People

          • Assignee:
            Unassigned
            Reporter:
            Neil Griffin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: