ICEfaces
  1. ICEfaces
  2. ICE-10762

commandLink action method being called twice on one click

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P03
    • Fix Version/s: EE-3.3.0.GA_P04
    • Component/s: Bridge, Framework
    • Labels:
      None
    • Environment:
      Mojarra 2.1.29-01, 2.1.29-02, 2.1.29-03
    • Assignee Priority:
      P1
    • Support Case References:
    • Workaround Exists:
      Yes
    • Workaround Description:
      The Mojarra 2.1.29 (before 2.1.29-01) doesn't seem to show this behavior as well as the supported 2.1.28 release.

      Description

      A commandLink is being rendered in an iterative container (ui:repeat, ace:dataTable, etc). On click of this link the action method receives the var object and updates the page based off of this click.

      Using ICEfaces 3 with Mojarra 2.1.29-01, upon each click the action method is called twice (except for the first click). It is called once for the current clicking link and again for the last one (when clicking down the list). When clicking up the list, this causes the data on the page to be shown incorrectly, the last link method is always called.

      I have created a plain JSF test case using the same code and jar file but this doesn't show the same behavior.

        Issue Links

          Activity

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #45986 Thu Sep 17 16:40:10 MDT 2015 mircea.toma ICE-10762 Submit the form when mojarra.jsfcljs will invoke Form.onsubmit thus avoiding to submit an old captured event and element. Mojarra will add its own hidden input elements before and remove them after the submit.
          Files Changed
          Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/javascript/capture-submit.js

            People

            • Assignee:
              Mircea Toma
              Reporter:
              Arran Mccullough
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: