尝试在 Liferay Portal 7.1.0 GA2 中的 create_account.jsp 上显示以下自定义字段。访客用户查看和更新的权限已设置为自定义字段,但未显示。
<liferay-ui:custom-attribute
className="<%= User.class.getName() %>"
classPK="<%= 0 %>"
editable="<%= true %>"
label="<%= false %>"
name="address2">
<liferay-ui:custom-attribute/>