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 Bug Fix
    • Status: Closed Closed
    • Priority: Major 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
    • Similar issues:
      KULRICE-7783Finish cleanup of Ajax code
      KULRICE-12419action buttons vanish for visible items in stacked collection with ajax disclosures
      KULRICE-12864Action parameters do not get submitted correctly for non-ajax requests
      KULRICE-12558Support for ajax refresh of the view
      KULRICE-5552Lookup - Change return and action columns to use action column of collection group
      KULRICE-5366Uif Framework - Collections: Support for duplicate key check in collections and highlighting attributes
      KULRICE-7428Duplicate error messages on collections within a subcollection
      KULRICE-5393Uif Framework - Better support for ajax posts and component refresh
      KULRICE-10688Binding path is lost after refresh of parent collection for child ajax retrieved components
      KULRICE-10684Adding duplicate item to maintenance collection does not throw an error
    • 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>

        Issue Links

          Activity

          Hide
          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
          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
          Jerry Neal (Inactive) added a comment -

          Applied to patch

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Structure Helper Panel