ICEfaces
  1. ICEfaces
  2. ICE-10819

New ace:clientValidateLength client-side validator

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 4.1
    • Assignee Priority:
      P1
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial

      Description

      Add support for client-side validation of minimum and/or maximum length.

      Wraps the jQuery Validation min/max/rangeLength functions in an ICEfaces / JSF friendly component.

      This component optionally accepts a min and max length.

      ---------------
      Description: Makes the element require a given minimum and/or maximum length.

      See:
      http://jqueryvalidation.org/minlength-method
      http://jqueryvalidation.org/maxlength-method
      http://jqueryvalidation.org/rangelength-method

      -------------

      This validator should be supported by the following input components:

      ACE
      - ace:autoCompleteEntry
      - ace:checkboxButtons
      - ace:comboBox
      - ace:maskedEntry
      - ace:richTextEntry
      - ace:textAreaEntry
      - ace:textEntry

        Issue Links

          Activity

          Hide
          Mircea Toma added a comment -

          Implemented ace:clientValidateLength client-side validator.

          Show
          Mircea Toma added a comment - Implemented ace:clientValidateLength client-side validator.
          Hide
          Liana Munroe added a comment - - edited

          Tested with ICEfaces 4 trunk r46333.
          The ace:clientValidateLength used with ace:checkboxButtons does not fire a message when using a submit button before requirements are met. See test application /checkboxButtonsClientValidateLength.jsf.
          http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/checkboxButtons

          To reproduce:
          Navigate to the /checkboxButtonsClientValidateLength.jsf page
          Press the submit button in the form near the top of the page. The length Validation message should render but it does not.

          Show
          Liana Munroe added a comment - - edited Tested with ICEfaces 4 trunk r46333. The ace:clientValidateLength used with ace:checkboxButtons does not fire a message when using a submit button before requirements are met. See test application /checkboxButtonsClientValidateLength.jsf. http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/checkboxButtons To reproduce: Navigate to the /checkboxButtonsClientValidateLength.jsf page Press the submit button in the form near the top of the page. The length Validation message should render but it does not.
          Hide
          Mircea Toma added a comment -

          This is the expected behaviour of jQuery validation. As long as nothing is entered the validation will not be triggered. Required client validation can be used to force input from the user.

          Show
          Mircea Toma added a comment - This is the expected behaviour of jQuery validation. As long as nothing is entered the validation will not be triggered. Required client validation can be used to force input from the user.

            People

            • Assignee:
              Mircea Toma
              Reporter:
              Ken Fyten
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: