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

          Hide
          Mircea Toma added a comment -

          Implemented ace:clientValidateDecimal client-side validator

          Show
          Mircea Toma added a comment - Implemented ace:clientValidateDecimal client-side validator
          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.
          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: