Foros de discusión

Has someone used "liferay-ui:user-search" tag?

thumbnail
Toni Pérez Rodil, modificado hace 11 años.

Has someone used "liferay-ui:user-search" tag?

New Member Mensajes: 9 Fecha de incorporación: 2/08/10 Mensajes recientes
Hello!

We' re developing a portlet in Liferay 6.1 EE Tomcat bundle which needs to select a user from Liferay user database.
We've thought that we could use the "liferay-ui:user-search" tag, but we haven't found the way to make it works.

Our portlet (editions-manager-portlet) is included in the Control Panel and the JSP we're using for testing contains the following code:

<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui"%>
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %>

<%@page import="java.util.LinkedHashMap"%>


<liferay-portlet:renderurl varImpl="testUrlImpl" />
<liferay-ui:user-search userParams="<%=new LinkedHashMap<String, Object>()%>" portletURL="${testUrlImpl}" rowChecker="<%=null%>" />



We're getting 2 Javascript errors in the Firefox console:
[indent]Error: document._editionsmanager_WAR_editionsmanagerportlet_fm is undefined
Archivo de origen: http://localhost:8080/group/control_panel/manage?p_p_id=editionsmanager_WAR_editionsmanagerportlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&doAsGroupId=10179&refererPlid=10182&_editionsmanager_WAR_editionsmanagerportlet_javax.portlet.action=preJuryEdition&_editionsmanager_WAR_editionsmanagerportlet_editionId=16206
Línea: 1
[/indent]
[indent]Error: Liferay.Panel is undefined
Archivo de origen: http://localhost:8080/html/themes/control_panel/js/main.js?browserId=firefox&languageId=es_ES&b=6110&t=1330010360000
Línea: 208
[/indent]

We've realized that in other views of the portlet, the "html/js/liferay/panel.js" is loaded meanwhile in this view doesn't.

Has someone used the "user-search" tag sucessfully?

Regards.
(Spanish version of this thread)
--
Toni Pérez Rodil
B2B 2000