ICEfaces
  1. ICEfaces
  2. ICE-10822

New ace:clientValidateRequired 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 required entry.

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

      ---------------
      Description: Makes the element required.

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

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

      This validator should be supported by the following input components:

      ACE
      - ace:autoCompleteEntry
      - ace:checkboxButtons
      - ace:comboBox
      - ace:dateTimeEntry
      - ace:fileEntry
      - ace:maskedEntry
      - ace:radioButtons
      - ace:richTextEntry
      - ace:selectMenu
      - ace:simpleSelectOneMenu
      - ace:sliderEntry
      - ace:textAreaEntry
      - ace:textEntry
       
      MOBI:
      - mobi:dateSpinner
      - mobi:timeSpinner

        Issue Links

          Activity

          Ken Fyten created issue -
          Ken Fyten made changes -
          Field Original Value New Value
          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 required entry.

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

          ---------------
          Description: Makes the element required.

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

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

          This validator should be supported by the following input components:

          ACE
          - ace:autoCompleteEntry
          - ace:checkboxButtons
          - ace:comboBox
          - ace:fileEntry
          - ace:maskedEntry
          - ace:radioButtons
          - ace:richTextEntry
          - ace:selectMenu
          - ace:simpleSelectOneMenu
          - ace:sliderEntry
          - ace:textAreaEntry
          - ace:textEntry
           
          MOBI:
          - mobi:dateSpinner
          - mobi:timeSpinner
          Ken Fyten made changes -
          Link This issue blocks ICE-5377 [ ICE-5377 ]
          Ken Fyten made changes -
          Description Add support for client-side validation of required entry.

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

          ---------------
          Description: Makes the element required.

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

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

          This validator should be supported by the following input components:

          ACE
          - ace:autoCompleteEntry
          - ace:checkboxButtons
          - ace:comboBox
          - ace:fileEntry
          - ace:maskedEntry
          - ace:radioButtons
          - ace:richTextEntry
          - ace:selectMenu
          - ace:simpleSelectOneMenu
          - ace:sliderEntry
          - ace:textAreaEntry
          - ace:textEntry
           
          MOBI:
          - mobi:dateSpinner
          - mobi:timeSpinner
          Add support for client-side validation of required entry.

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

          ---------------
          Description: Makes the element required.

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

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

          This validator should be supported by the following input components:

          ACE
          - ace:autoCompleteEntry
          - ace:checkboxButtons
          - ace:comboBox
          - ace:dateTimeEntry
          - ace:fileEntry
          - ace:maskedEntry
          - ace:radioButtons
          - ace:richTextEntry
          - ace:selectMenu
          - ace:simpleSelectOneMenu
          - ace:sliderEntry
          - ace:textAreaEntry
          - ace:textEntry
           
          MOBI:
          - mobi:dateSpinner
          - mobi:timeSpinner
          Ken Fyten made changes -
          Assignee Priority P1 [ 10010 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #46150 Thu Oct 29 11:35:56 MDT 2015 mircea.toma ICE-10822 Implemented ace:clientValidateRequired client-side validator.
          Files Changed
          Commit graph ADD /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/clientValidator/RequiredValidatorMeta.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/RequiredValidator.java
          Hide
          Mircea Toma added a comment -

          Implemented ace:clientValidateRequired client-side validator.

          Show
          Mircea Toma added a comment - Implemented ace:clientValidateRequired client-side validator.
          Mircea Toma made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #46152 Thu Oct 29 12:02:25 MDT 2015 mircea.toma ICE-10822 Change tag attribute from 'required' to 'enabled'.
          Files Changed
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/clientValidator/RequiredValidatorMeta.java
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/clientValidator/RequiredValidator.java
          Hide
          Liana Munroe added a comment - - edited

          Tested with ICEfaces 4 trunk r46164. When using this component with ace:sliderEntry a js error appears:
          TypeError: a is undefined
          http://localhost:8080/sliderEntry/javax.faces.resource/jquery/jquery.c.js.jsf?ln=icefaces.ace&v=4_1_0_151103
          Line 76
          Test app (/sliderEntryClientValidateRequired.jsf) can be found at:
          http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/sliderEntry.

          There are no issues when this component is used with autoCompleteEntry, textEntry, textAreaEntry, maskedEntry.

          ace:comboBox, ace:checkboxButtons, ace:radioButtons, ace:fileEntry, ace:selectMenu, ace:simpleSelectOneMenu and ace:richTextEntry are still missing the Validatetable interface so have not been tested.

          Show
          Liana Munroe added a comment - - edited Tested with ICEfaces 4 trunk r46164. When using this component with ace:sliderEntry a js error appears: TypeError: a is undefined http://localhost:8080/sliderEntry/javax.faces.resource/jquery/jquery.c.js.jsf?ln=icefaces.ace&v=4_1_0_151103 Line 76 Test app (/sliderEntryClientValidateRequired.jsf) can be found at: http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/sliderEntry . There are no issues when this component is used with autoCompleteEntry, textEntry, textAreaEntry, maskedEntry. ace:comboBox, ace:checkboxButtons, ace:radioButtons, ace:fileEntry, ace:selectMenu, ace:simpleSelectOneMenu and ace:richTextEntry are still missing the Validatetable interface so have not been tested.
          Hide
          Liana Munroe added a comment - - edited

          As per ICE-5377 ace:sliderEntry will no longer considered for use with ace:clientValidateRequired.

          Show
          Liana Munroe added a comment - - edited As per ICE-5377 ace:sliderEntry will no longer considered for use with ace:clientValidateRequired.
          Hide
          Liana Munroe added a comment -

          ICEfaces 4 trunk 46287
          As per Ken ace:radioButtons will no longer be considered for use with ace:clientValidateRequired.

          Show
          Liana Munroe added a comment - ICEfaces 4 trunk 46287 As per Ken ace:radioButtons will no longer be considered for use with ace:clientValidateRequired.
          Hide
          Mircea Toma added a comment -

          Removed client validation support for ace:radioButtons.

          Show
          Mircea Toma added a comment - Removed client validation support for ace:radioButtons .
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #46293 Thu Nov 26 04:59:54 MST 2015 mircea.toma ICE-10822 Removed client validation support.
          Files Changed
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/radiobuttons/RadioButtons.java
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/radiobuttons/RadioButtonsRenderer.java
          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: