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

          Ken Fyten created issue -
          Ken Fyten made changes -
          Field Original Value New Value
          Assignee Mircea Toma [ mircea.toma ]
          Fix Version/s 4.1 [ 11375 ]
          Affects Documentation (User Guide, Ref. Guide, etc.),Sample App./Tutorial [ 10003, 10001 ]
          Ken Fyten made changes -
          Link This issue blocks ICE-5377 [ ICE-5377 ]
          Ken Fyten made changes -
          Summary New ace:clientValidateMinLength client-side validator New ace:clientValidateLength client-side validator
          Ken Fyten made changes -
          Description Add support for client-side validation of minimum length.

          Wraps the jQuery Validation minLength function in an ICEfaces / JSF friendly component.

          ---------------
          Description: Makes the element require a given minimum length.

          Src: http://jqueryvalidation.org/minlength-method

          minlength( length ) length Type: Number
          Minimum number of characters required

          Return false if the element is
          some kind of text input and its value is too short
          a set of checkboxes that doesn't have enough boxes checked
          a select and doesn't have enough options selected
          Works with text inputs, selects and checkboxes.
          -------------

          This validator should be supported by the following input components:

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

          MOBI:
          - mobi:dateSpinner
          - mobi:timeSpinner
          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:dateTimeEntry
          - ace:maskedEntry
          - ace:richTextEntry
          - ace:textAreaEntry
          - ace:textEntry

          MOBI:
          - mobi:dateSpinner
          - mobi:timeSpinner
          Ken Fyten made changes -
          Assignee Priority P1 [ 10010 ]
          Ken Fyten made changes -
          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:dateTimeEntry
          - ace:maskedEntry
          - ace:richTextEntry
          - ace:textAreaEntry
          - ace:textEntry

          MOBI:
          - mobi:dateSpinner
          - mobi:timeSpinner
          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:richTextEntry
          - ace:textAreaEntry
          - ace:textEntry

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #46147 Wed Oct 28 18:29:43 MDT 2015 mircea.toma ICE-10819 Implemented ace:clientValidateLength client-side validator.
          Files Changed
          Commit graph ADD /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/clientValidator/LengthValidator.java
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/resources/messages.properties
          Commit graph ADD /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/clientValidator/LengthValidatorMeta.java
          Commit graph DEL /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/clientValidator/MinLengthValidator.java
          Commit graph DEL /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/clientValidator/MinLengthValidatorMeta.java
          Hide
          Mircea Toma added a comment -

          Implemented ace:clientValidateLength client-side validator.

          Show
          Mircea Toma added a comment - Implemented ace:clientValidateLength client-side validator.
          Mircea Toma made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Liana Munroe made changes -
          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:richTextEntry
          - ace:textAreaEntry
          - ace:textEntry

          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

          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.
          Liana Munroe made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          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.
          Mircea Toma made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: