ICEfaces
  1. ICEfaces
  2. ICE-5377

Support for client-side validators for ACE and MOBI input components

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1
    • Labels:
      None
    • Environment:
      ICEfaces 4, ACE and MOBI input components.

      Description

      A great feature would be to support purely client-side validation when possible.

      This would entail implementing common JSF2 validators in JavaScript such that validation could occur in the browser without the need for a JSF lifecycle/roundtrip to occur. Certain static validation types could be supported this way. The relationship between the client-side mode and the normal JSF behavior would need to be carefully considered.

        Issue Links

          Activity

          Hide
          Ken Fyten added a comment -

          Integration with *:ajax behaviours that have immediate=true needs to be handled by the component renderers. Having a generic solution is not possible in this case. Only the renderers know about what event types are available and how they match to the DOM events and elements.

          In that case let's prioritize the ace:pushButton and ace:linkButton for 4.1, and we can tackle the other components in a future release.

          Show
          Ken Fyten added a comment - Integration with *:ajax behaviours that have immediate=true needs to be handled by the component renderers. Having a generic solution is not possible in this case. Only the renderers know about what event types are available and how they match to the DOM events and elements. In that case let's prioritize the ace:pushButton and ace:linkButton for 4.1, and we can tackle the other components in a future release.
          Hide
          Ken Fyten added a comment - - edited

          Modified tabset client code to change tab's opacity only when submit is actually issued. Introduce new 'onsubmit' callback for ice.ace.AjaxRequest to allow for registering a callback that is invoked just before jsf.ajax.request function will issue the submit.

          ace:tabset remains incompatible with client side validators. As we're out of time for 4.1 we will remove client side validators from Emporium for this release and document this issue in a new JIRA (ICE-10894).

          Please revert the ace:tabset change noted above as well for 4.1 to reduce regression risk.

          Show
          Ken Fyten added a comment - - edited Modified tabset client code to change tab's opacity only when submit is actually issued. Introduce new 'onsubmit' callback for ice.ace.AjaxRequest to allow for registering a callback that is invoked just before jsf.ajax.request function will issue the submit. ace:tabset remains incompatible with client side validators. As we're out of time for 4.1 we will remove client side validators from Emporium for this release and document this issue in a new JIRA ( ICE-10894 ). Please revert the ace:tabset change noted above as well for 4.1 to reduce regression risk.
          Hide
          Liana Munroe added a comment -

          ICEfaces 4 trunk r46533 "Implemented integration with 'immediate' submitting components." is verified.

          Show
          Liana Munroe added a comment - ICEfaces 4 trunk r46533 "Implemented integration with 'immediate' submitting components." is verified.
          Hide
          Carlo Guglielmin added a comment -

          r46537 - Reverted to normal server side validators in Emporium until ICE-10894 is fixed.

          Show
          Carlo Guglielmin added a comment - r46537 - Reverted to normal server side validators in Emporium until ICE-10894 is fixed.
          Hide
          Ken Fyten added a comment -

          Lack of support for using client validators with ace:ajax and "immediate=true" is captured in ICE-10897 as a future improvement.

          Marking Resolved.

          Show
          Ken Fyten added a comment - Lack of support for using client validators with ace:ajax and "immediate=true" is captured in ICE-10897 as a future improvement. Marking Resolved.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: