Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Liferay 如何为用户实体创建和调用操作按钮_Liferay_Hook_Liferay 6_Liferay Theme_Liferay Aui - Fatal编程技术网

Liferay 如何为用户实体创建和调用操作按钮

Liferay 如何为用户实体创建和调用操作按钮,liferay,hook,liferay-6,liferay-theme,liferay-aui,Liferay,Hook,Liferay 6,Liferay Theme,Liferay Aui,我已经创建了一个portlet,它具有用户表单,在调用UserLocalServiceUtil.addUser()的类中单击save buton以将用户信息保存在DB中。使用下面的代码,我正在我的view.jsp中打印用户列表 <liferay-ui:search-container delta="10" emptyResultsMessage="no-users-were-found"> <liferay-ui:search-container-results

我已经创建了一个portlet,它具有用户表单,在调用UserLocalServiceUtil.addUser()的类中单击save buton以将用户信息保存在DB中。使用下面的代码,我正在我的
view.jsp
中打印用户列表

<liferay-ui:search-container delta="10" emptyResultsMessage="no-users-were-found">
        <liferay-ui:search-container-results
                results="<%=UserLocalServiceUtil.getUsers(searchContainer.getStart(), searchContainer.getEnd())%>"
       total="<%=UserLocalServiceUtil.getUsersCount()%>" />
        <liferay-ui:search-container-row
                className="com.liferay.portal.model.User"
                keyProperty="userId"
                modelVar="user"
        >
                <liferay-ui:search-container-column-text
                        name="name"
                        value="<%= user.getFullName() %>"
                />
                <liferay-ui:search-container-column-text
                        name="first-name"
                        property="firstName"
                />
                <liferay-ui:search-container-column-text
                        name="last-name"
                        property="lastName"
                />
                <liferay-ui:search-container-column-text
                        name="screen-name"
                        property="screenName"
                />
        </liferay-ui:search-container-row>
        <liferay-ui:search-iterator />
</liferay-ui:search-container>
<liferay-ui:search-container delta="10" emptyResultsMessage="no-users-were-found" />

现在,我的代码的屏幕截图如下所示

现在我想为用户列表启用操作控件。是否有任何方法可以调用API方法来调用和启用具有以下功能的操作按钮

如果API方法无法做到这一点,如何为用户列表添加操作按钮,以便编辑用户信息


以下文件中提供了我可以以何种方式完成任务的任何建议

您正在搜索的内容:


该文件包含在搜索迭代器的最后一列中。

我将在一个单独的portlet中执行此操作。所以你想让我在我的portlet中添加suggsted文件,并将其包含在搜索迭代器的最后一列中?遗憾的是,不允许跨上下文,所以你必须复制它。。。然后,你应该确保调用正确的“核心”操作。。。但很有可能在行动之后,他们会回到标准页面。我不确定,因为我从来没有这样做过。另一种方法是在portlet中复制大部分LR核心,但我非常不喜欢这种解决方案。。。另一种方法是直接修改(通过ext)用户portlet。。。正如我已经说过的,问题在于系统不是在同一个组中以这种方式工作的,而只是在同一个门户实例中…:(