• Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
    • Similar issues:
      KULRICE-8550Uif Components (Kitchen Sink) Jump to and Focus links not working
      KULRICE-13467Fill AFT Gap: KRAD Library - Focus and Jump To
      KULRICE-7890Links for errors do not jump correctly to the fields in question, but rather jitter and jump to the top of the page
      KULRICE-7773Validation links no longer jump the user to the appropriate content
      KULRICE-9697Focus LINE_FIRST is not working
      KULRICE-11950Prevent resizing jump on lightbox
      KULRICE-12578Weird jump behavior on Krad sample app when clicking an item
      KULRICE-6563Add the standard "jump to main content" link
      KULRICE-10057Page jumps to top then to first message when messages are returned from the server
      KULRICE-10811Lookup Gap Analysis Focus Group
    • Rice Module:
    • KRAD Feature Area:
      UIF Component
    • Sprint:
      Core 2.5.0-m3 Sprint 2, Core 2.5.0-m4 Sprint 1, Core 2.5.0-m4 Sprint 2
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:


      Focus on and jump to is not working correctly now, in addition, there are some config improvements we need to make.

      First if you set a focusId for an action component, focus is not set when a refresh occurs. I believe this is due to how the performFocusAndJumpTo method is being called from the page load event:

      <@krad.script value="jQuery(document).on(kradVariables.PAGE_LOAD_EVENT, function(){


      , true, true, '$




      ', '$


      });" component=KualiForm.view.currentPage/>

      Other problems include:

      1) Setting focus id could override focus set when there are errors

      I purpose we modify the implementation as follows:

      For view and page refreshes, add the focusId and jumpTo as data attribute of the page. Note this can be done in PageGroup and should only be done if there is a value in the form property. Also if autoFocus is true, add a data attribute to the page.

      For component refreshes, add focusId and jumpTo to the component wrapper div (look at uifRender.ftl).

      Another thing I have noticed. When the default jumpTo is the action, the scroll puts the action at the top of the viewport. It would be better if we can position the action at the bottom of the viewport I think.

      Create a new method for handling focus and jump. This should encapsulate all logic (of course can use helper methods), but should have logic for validation focusing and other cases. Invoke this method from document ready, page setup, and update component, passing in the data attributes (if found).

      Create demos for this functionality in General Features. Should test the various focus setting and jump settings.


        Sona Sona (Inactive) logged work - 27/May/14 11:14 AM
        • Time Spent:
          4 hours
          <No comment>
        Sona Sona (Inactive) logged work - 29/May/14 11:07 AM
        • Time Spent:
          4 hours
          <No comment>
        Sona Sona (Inactive) logged work - 11/Jun/14 11:09 AM
        • Time Spent:
          4 hours
          <No comment>
        Sona Sona (Inactive) logged work - 17/Jun/14 12:58 PM
        • Time Spent:
          4 hours
          <No comment>


          • Assignee:
            Kristina Taylor (Inactive)
            Jerry Neal (Inactive)
          • Votes:
            0 Vote for this issue
            4 Start watching this issue


            • Created:

              Time Tracking

              Original Estimate - 3 days
              Remaining Estimate - 0 minutes
              Time Spent - 2 days Time Not Required


                  Structure Helper Panel