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

aui:input tag fails when handling field not present in portlet-model-hints.xml

    Description

    When the aui:input tag is used

    • with aui:form and aui:model-context and
    • its name does not map to a model field and
    • its name is not present in portlet-model-hints.xml or portlet-model-hints-ext.xml

    then

    • the place where its input would appear stays empty and
    • no warning is seen, neither in the page nor in the logs.

    Steps to reproduce

    1. Deploy the attached portlet.
    2. Add it to a page.

    Expected results

    Either of those results (or both of them) would be helpful:

    • The "publication-date" field could be displayed as a default type (let us say, "text").
    • If the input is not displayed with a default type, an error message could appear where it is expected.
    • A warning message could be displayed in the logs.

    Actual results

    • The "publication-date" field will not be displayed, neither an error message.
    • No warning message will appear in the logs.

      Attachments

        Issue Links

          Activity

            People

            • Assignee:
              sylvia.luan Sylvia Luan
              Reporter:
              adam.brandizzi Adam Brandizzi
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 51 weeks, 5 days ago

                Packages

                Version Package
                7.0.X EE
                Master