Details

    • Technical Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 6.2.0 CE M4
    • Dev Tools, UI Taglibs
    • None

    Description

      Liferay tabs can be used dynamically (when the user clicks in a tab we don't refresh the whole page, we just show or hide some sections) with the following code (refresh parameter):

      <liferay-ui:tabs
      formName="fm"
      names="asset-selection,display-settings"
      param="tabs2"
      refresh="<%= false %>"
      >
      <liferay-ui:section>
      </liferay-ui:section>
      <liferay-ui:section>
      </liferay-ui:section>
      </liferay-ui:tabs>

      Then, if there is an error in the second tab but the user submitted the form from the first tab, he won't be redirected to the tab where the error is, so he will be confused about where he should fix the error.

      In case there is an error in any tab, the user should be automatically redirected to that tab so the user can see the error and fix it.

      The proposal of this ticket is to use the following taglib to support this: liferay-ui:error-marker

      Then, we need to use this taglib inside the different sections and when there is an error the user will be redirected automatically to the section where the error is:

      <liferay-ui:tabs
      formName="fm"
      names="asset-selection,display-settings"
      param="tabs2"
      refresh="<%= false %>"
      >
      <liferay-ui:section>
      <liferay-ui:error-marker key="errorSection" value="asset-selection" />
      </liferay-ui:section>
      <liferay-ui:section>
      <liferay-ui:error-marker key="errorSection" value="display-settings" />
      </liferay-ui:section>
      </liferay-ui:tabs>

      Attachments

        Activity

          People

            brian.wulbern Brian Wulbern
            sergio.gonzalez Sergio Gonzalez (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 32 weeks, 3 days ago

              Packages

                Version Package
                6.2.0 CE M4