Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-7858

Using a navigation action in a collection causes duplicate ajax submits

    Details

    • Type: Bug Fix
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0-m3, 2.2
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Rice Module:
      KRAD
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      We're using navigation action link in line actions as we need to navigate to different page or redirect to another controller. As we use navigation link, I see 2 ajax call to the server (actionInvokeHandler and performCollectionAction). Is there any way to skip the hardcoded performCollectionAction(). We really dont want performCollectionAction() here as we're using navigation link.

      <property name="lineActions">
      <list>
      <bean parent="Uif-NavigationActionLink" p:methodToCall="copyCourseOffering" p:actionLabel="Copy" />
      <bean parent="Uif-NavigationActionLink" p:methodToCall="loadAOs" p:actionLabel="Manage" />
      <bean parent="Uif-NavigationActionLink" p:methodToCall="edit" p:actionLabel="Edit " />
      <bean parent="Uif-NavigationActionLink" p:methodToCall="deleteCoConfirmation" p:actionLabel="Delete" p:render = "@

      {#line.isLegalToDelete()}

      " />
      </list>
      </property>

        Attachments

          Issue Links

            Activity

            Hide
            jkneal Jerry Neal (Inactive) added a comment -

            From Venkat:

            Jerry,
            This issue related to my post yesterday. I noticed that if we multiple buttons at line action, each button in a row has incremental number of times of actionInvokeHandler(), which causes multiple submit. Looks like we have issue with actionFieldPrototype, which concatenates actionInvokeHandler() multiple times. I believe your fix for yesterdays issue should fix this one also. Please let us know once you check in your fix at m3 branch

            Thanks

            Show
            jkneal Jerry Neal (Inactive) added a comment - From Venkat: Jerry, This issue related to my post yesterday. I noticed that if we multiple buttons at line action, each button in a row has incremental number of times of actionInvokeHandler(), which causes multiple submit. Looks like we have issue with actionFieldPrototype, which concatenates actionInvokeHandler() multiple times. I believe your fix for yesterdays issue should fix this one also. Please let us know once you check in your fix at m3 branch Thanks
            Hide
            jkneal Jerry Neal (Inactive) added a comment -

            Applied to patch

            Show
            jkneal Jerry Neal (Inactive) added a comment - Applied to patch

              People

              • Assignee:
                jkneal Jerry Neal (Inactive)
                Reporter:
                jkneal Jerry Neal (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: