ICEfaces
  1. ICEfaces
  2. ICE-6470

ice:commandButton Double Post with SingleSubmit

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0-EE-Beta1, 2.0.1
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      JSF 2.1 (Composite or Enterprise Components)

      Description

      After adding icecore:singleSubmit tag to the composite-component-showcase, I noticed clicking on ice:commandButtons in the compat-composite-component source resulted in two posts to the server.

      The first post @this, @all, the second post @all @all. This does not happen with ice:commandLink which has one @all @all post.

        Issue Links

          Activity

          Hide
          Brad Kroeger added a comment -

          I am also seeing the double post with h:commandButton

          Show
          Brad Kroeger added a comment - I am also seeing the double post with h:commandButton
          Hide
          Carlo Guglielmin added a comment -

          Double POST with singleSubmit also present in IPCK-202, IPCK-206, and IPCK-208.

          Show
          Carlo Guglielmin added a comment - Double POST with singleSubmit also present in IPCK-202 , IPCK-206 , and IPCK-208 .
          Hide
          Ted Goddard added a comment -

          Further investigation indicates that the strange browser behavior is due to the interaction of the UI blocker with extra singleSubmit calls. The UI blocker is behaving correctly, but if it is incorrectly triggered by singleSubmit incorrectly handling a blur event, then the subsequent onclick will be discarded.

          Both "image" and "select-multiple" were allowing singleSubmit to be triggered via their onblur events. The candidate fix is to discard blur events from these elements.

          Show
          Ted Goddard added a comment - Further investigation indicates that the strange browser behavior is due to the interaction of the UI blocker with extra singleSubmit calls. The UI blocker is behaving correctly, but if it is incorrectly triggered by singleSubmit incorrectly handling a blur event, then the subsequent onclick will be discarded. Both "image" and "select-multiple" were allowing singleSubmit to be triggered via their onblur events. The candidate fix is to discard blur events from these elements.
          Hide
          Ted Goddard added a comment - - edited

          Fix is checked in. Assigning to Carlo for verification from the ICEfaces 2 trunk. Please also verify the related JIRAs.

          Show
          Ted Goddard added a comment - - edited Fix is checked in. Assigning to Carlo for verification from the ICEfaces 2 trunk. Please also verify the related JIRAs.
          Hide
          Carlo Guglielmin added a comment -

          Rebuilding and testing with the fix against the 3 related bugs shows all duplicate POSTS have been eliminated. Looks fixed to me, thanks Ted.

          Show
          Carlo Guglielmin added a comment - Rebuilding and testing with the fix against the 3 related bugs shows all duplicate POSTS have been eliminated. Looks fixed to me, thanks Ted.

            People

            • Assignee:
              Carlo Guglielmin
              Reporter:
              Brad Kroeger
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: