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

Adding Hidden attribute into Liferay-ui custom attribute tag

    Details

      Description

      The tag liferay-ui:custom-attribute does't have any "hidden" attribute to make a hidden field in jsp page.

      <liferay-ui:custom-attribute className="<%= User.class.getName() %>" classPk="<%= user2 != null ? user2.getUserId() : 0 %>"
      editable="<%= true%>" label="<%= true%>" name="type-of-user" />

      Need to add one more attribute as "hidden=true" , then it should generate the html input box "type='hidden'" in jsp page which will not visible to users.
      Right now, we can set hidden as false through control panel while creating the custom field. But that behavior is different which will not generate any HTML input box in jsp page after adding the custom attribute tag.

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              rasikow Gnaniyar Zubair
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package