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

            jkneal Jerry Neal (Inactive) created issue -
            jkneal Jerry Neal (Inactive) made changes -
            Field Original Value New Value
            Link This issue cloned from KULRICE-7208 [ KULRICE-7208 ]
            jkneal Jerry Neal (Inactive) made changes -
            Issue Type Task [ 3 ] Bug Fix [ 1 ]
            Fix Version/s 2.2.0-m4 [ 16598 ]
            Fix Version/s 2.2-backlog [ 16475 ]
            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>
            Assignee Jerry Neal [ jkneal ]
            jkneal Jerry Neal (Inactive) made changes -
            Start Date
            Fix Date 2012-08-13 [ set to sprint end date ]
            jkneal Jerry Neal (Inactive) made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            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
            jkneal Jerry Neal (Inactive) made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            jkneal Jerry Neal (Inactive) added a comment -

            Applied to patch

            Show
            jkneal Jerry Neal (Inactive) added a comment - Applied to patch
            jkneal Jerry Neal (Inactive) made changes -
            Fix Version/s 2.2.0-m3 [ 16464 ]
            Fix Version/s 2.2.0-m4 [ 16598 ]
            jcoltrin Jessica Coltrin (Inactive) made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            spatterson Shem Patterson (Inactive) made changes -
            Workflow custom [ 151003 ] Copy of custom for rice [ 214743 ]
            spatterson Shem Patterson (Inactive) made changes -
            Workflow Copy of custom for rice [ 214743 ] custom [ 224491 ]
            spatterson Shem Patterson (Inactive) made changes -
            Workflow custom [ 224491 ] Rice Workflow [ 234239 ]

              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: