如何在注册表中扩展Liferay中的用户对象?
我是liferay的新手 您知道如何创建/自定义注册页面/操作吗 我需要更多的领域在登记表,如爱好,公司名称,职位 我正在阅读官方文件《liferay in action》一书,但我仍然对这个概念感到困惑 我刚刚为新表创建了服务,并为自定义页面创建了一个钩子: service.xml如何在注册表中扩展Liferay中的用户对象?,liferay,liferay-hook,Liferay,Liferay Hook,我是liferay的新手 您知道如何创建/自定义注册页面/操作吗 我需要更多的领域在登记表,如爱好,公司名称,职位 我正在阅读官方文件《liferay in action》一书,但我仍然对这个概念感到困惑 我刚刚为新表创建了服务,并为自定义页面创建了一个钩子: service.xml <entity name="UserExt" local-service="true" remote-service="true"> <!-- PK fields --&g
<entity name="UserExt" local-service="true" remote-service="true">
<!-- PK fields -->
<column name="userExtId" type="long" primary="true" />
<!-- userExt fields -->
<column name="companyId" type="long" />
<column name="orgId" type="long" />
<column name="hobbies" type="String" />
<column name="createdBy" type="String" />
<column name="createDate" type="Date" />
<column name="updatedBy" type="String" />
<column name="updatedDate" type="Date" />
<!-- Order -->
<order by="asc">
<order-column name="userExtId" />
</order>
<!-- Finder methods -->
<finder name="orgId" return-type="Collection">
<finder-column name="orgId" />
</finder>
</entity>
</service-builder>
创建账户.jsp
<aui:input model="<%= User.class %>" name="hobbies" />
or
<aui:input model="<%= UserExt.class %>" name="hobbies" />
或
如何在UserExt之间连接/扩展用户对象
有什么好的参考/示例项目/视频吗
生命中的积垢
我该怎么办
谢谢
MRizq正如您所说,您希望向注册表添加更多属性,您可以使用自定义字段功能 添加自定义字段
To add a custom field, click on the Custom Fields link in the control panel. Then choose a resource, click on the Edit link next to it and select Add Custom Field.
更多