次のような簡単な3つのタグで上記の要件を満たすことができます。lifeay.iary power of lifestay.Very awesome !!!
JSP:
<aui:form action="<%=updateTagsURL%>" method="post"
name="updateTagsForm">
<aui:model-context bean="<%=user%>" model="<%=User.class%>" />
<h3>
<liferay-ui:message key="tags" />
</h3>
<aui:fieldset>
<aui:input name="" type="assetTags" label="" />
</aui:fieldset>
<aui:input type="Submit" name="" value="Submit" lable=""></aui:input>
</aui:form>
アクションクラス:
public void addTags(ThemeDisplay themeDisplay,String emailAddress,String[] tagNames){
User user;
try {
user = UserLocalServiceUtil.getUserByEmailAddress(themeDisplay.getCompanyId(), emailAddress);
AssetEntryLocalServiceUtil.updateEntry(user.getUserId(), themeDisplay.getScopeGroupId(),"com.liferay.portal.model.User", user.getUserId(),null, tagNames);
} catch (PortalException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SystemException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}