ICEfaces
  1. ICEfaces
  2. ICE-10823

New ace:clientValidateDecimal 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 that a text-entry component contains a decimal value.

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

      ---------------
      Description: Makes the element require a decimal number.

      Returns true if the value contains a valid decimal number.
      Works with text inputs.

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

      This validator should be supported by the following input components:

      ACE
      - ace:autoCompleteEntry
      - 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
          Description Add support for client-side validation of maximum length.

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

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

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

          maxlength( length ) length Type: Number

          Maximum number of characters required

          Return false if the element is
          some kind of text input and its value is too long
          a set of checkboxes that has too many boxes checked
          a select and has too many 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 that a text-entry component contains a decimal value.

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

          ---------------
          Description: Makes the element require a decimal number.

          Returns true if the value contains a valid decimal number.
          Works with text inputs.

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

          This validator should be supported by the following input components:

          ACE
          - ace:autoCompleteEntry
          - ace:comboBox
          - ace:maskedEntry
          - ace:richTextEntry
          - ace:textAreaEntry
          - ace:textEntry
          Ken Fyten made changes -
          Link This issue blocks ICE-5377 [ ICE-5377 ]
          Ken Fyten made changes -
          Assignee Priority P1 [ 10010 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #46153 Thu Oct 29 12:24:35 MDT 2015 mircea.toma ICE-10823 Implemented ace:clientValidateDecimal client-side validator
          Files Changed
          Commit graph ADD /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/clientValidator/DecimalValidatorMeta.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/DecimalValidator.java
          Hide
          Mircea Toma added a comment -

          Implemented ace:clientValidateDecimal client-side validator

          Show
          Mircea Toma added a comment - Implemented ace:clientValidateDecimal client-side validator
          Mircea Toma made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Liana Munroe added a comment -

          Tested with ICEfaces 4 trunk r46333.
          The ace:clientValidatePattern does not fire a message when using a submit button before requirements are met. See test application //textEntryClientValidateDecimal.jsf
          http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/textEntry
          To reproduce:
          Navigate to the /textEntryClientValidateDecimal.jsf page
          Press the submit button beneath the ace:textEntry. The decimal Validation message should render but it does not.

          Show
          Liana Munroe added a comment - Tested with ICEfaces 4 trunk r46333. The ace:clientValidatePattern does not fire a message when using a submit button before requirements are met. See test application //textEntryClientValidateDecimal.jsf http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/textEntry To reproduce: Navigate to the /textEntryClientValidateDecimal.jsf page Press the submit button beneath the ace:textEntry. The decimal 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: