Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-149584

Tabs fragment should be able to persist selected tab on page reload.

    Details

      Description

      Use Case:

      I have a page to display support tickets with the following structure:

      • Collection Filter Fragment (Keyword Search)
      • Tabs Fragment
        • Tab1: Collection Display: Tickets (Filtered to Open Tickets)
        • Tab2: Collection Display: Tickets (Filtered to Closed Tickets)

      The page includes two tabs to display open and closed tickets and a Collection filter fragment to search within both collections.

      If I switch to tab2 and then change the Keyword for the Collection filter fragment, the page will reload and I am switched back to tab1. I then have to switch to tab2 to see my filter applied.

      Implementation Options:

      • Persist Selected Tab in URL: This could match the method used to persist the query for the collection filter fragment.
      • Persist the Selected Tab in local storage: This has the advantage of keeping the URL cleaner.
      • Provide Configuration for Persistence: Fragment configuration could be provided to choose whether the selected tab should persist or not. It could also provide the ability to choose which persistence method is desired.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              evan.thibodeau Evan Thibodeau
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package