ICEfaces
  1. ICEfaces
  2. ICE-3374

Add partialSubmit attribute to selectInputText

    Details

      Description

      Currently, when an item from the drop down is selected the selectInputText fires a full submit event. This makes it difficult to use the component in a form with other required input components, as the full submit will fire the required validation for the other components.

      suggested fix:

      ### Eclipse Workspace Patch 1.0
      #P ICEfaces-ossrepo
      Index: bridge/lib/extras/autocomplete_ext.js
      ===================================================================
      --- bridge/lib/extras/autocomplete_ext.js (revision 17263)
      +++ bridge/lib/extras/autocomplete_ext.js (working copy)
      @@ -591,8 +591,8 @@
               var form = Ice.util.findForm(this.element);
               // form.focus_hidden_field.value=this.element.id;
               if (isEnterKey) {
      - Ice.Autocompleter.logger.debug("Sending submit");
      - iceSubmit(form, this.element, event);
      + Ice.Autocompleter.logger.debug("Sending partial submit for enter key");
      + iceSubmitPartial(form, this.element, event);
               }
               else {
                   Ice.Autocompleter.logger.debug("Sending partial submit");

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24607 Tue May 17 12:01:17 MDT 2011 yip.ng ICE-3374: selectInputText should use a partialSubmit rather than a submit event on item selection.
        Files Changed
        Commit graph MODIFY /icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/compat/core/src/main/javascript/extras/extras.js
        Commit graph MODIFY /icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/compat/components/src/main/java/com/icesoft/faces/component/selectinputtext/SelectInputTextRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24606 Tue May 17 11:56:32 MDT 2011 yip.ng ICE-3374: selectInputText should use a partialSubmit rather than a submit event on item selection.
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/selectinputtext/SelectInputTextRenderer.java
        Commit graph MODIFY /icefaces2/trunk/icefaces/compat/core/src/main/javascript/extras/extras.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24605 Tue May 17 11:45:19 MDT 2011 yip.ng ICE-3374: selectInputText should use a partialSubmit rather than a submit event on item selection.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/selectinputtext/SelectInputTextRenderer.java
        Commit graph MODIFY /icefaces/trunk/icefaces/bridge/lib/extras/autocomplete_ext.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24603 Tue May 17 10:19:47 MDT 2011 yip.ng ICE-3374: selectInputText should use a partialSubmit rather than a submit event on item selection.
        Files Changed
        Commit graph MODIFY /icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/compat/core/src/main/javascript/extras/extras.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24602 Tue May 17 10:13:03 MDT 2011 yip.ng ICE-3374: selectInputText should use a partialSubmit rather than a submit event on item selection.
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/compat/core/src/main/javascript/extras/extras.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24601 Tue May 17 10:10:07 MDT 2011 yip.ng ICE-3374: selectInputText should use a partialSubmit rather than a submit event on item selection.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/bridge/lib/extras/autocomplete_ext.js

          People

          • Assignee:
            yip.ng
            Reporter:
            Philip Breau
          • Votes:
            14 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: