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

Using twice aui:form within the same portlet generates duplicate ids

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 7.0.0 DXP FP47, 7.0.X, Master
    • Fix Version/s: None
    • Labels:
      None
    • Fix Priority:
      2

      Description

      Description
      aui:form taglib is adding an input hidden field which id is based on portlet namespace, hence if we add two aui:form inside the same portlet, we'll have a duplicated id.

      Steps to reproduce
      1.- Start Liferay
      2.- Add Dynamic Data List Display portlet to Welcome Page. (We'll use this one, but any portlet with two aui:form's wil lhave the same behavior)
      3.- Go to Configuration in that portlet.
      4.- Inspect DOMĀ and find "_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_formDate"

      Expected behavior
      You only get one result, so there are no duplicated IDs

      Actual behavior
      You get two results, so there are duplicated IDs

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                24 weeks ago

                Packages

                Version Package