Foros de discusión
search container error
Matt S., modificado hace 11 años.
search container error
Junior Member Mensajes: 36 Fecha de incorporación: 29/11/12 Mensajes recientes
Hi all,
I have a problem with search container, in particular I have a portlet with a search container that display a list of user assigned to an organization. But when I try to deactivate an user from this organization, he still appear into search container. How can I solve it? Below there is my code
Regards
I have a problem with search container, in particular I have a portlet with a search container that display a list of user assigned to an organization. But when I try to deactivate an user from this organization, he still appear into search container. How can I solve it? Below there is my code
<portlet:defineobjects />
<theme:defineobjects />
<% List<user> list=UserLocalServiceUtil.getOrganizationUsers(10904);
%>
<liferay-ui:search-container delta="10" emptyresultsmessage="no-users-were-found">
<liferay-ui:search-container-results results="<%= list %>" total="<%= list.size() %>" />
<liferay-ui:search-container-row classname="com.liferay.portal.model.User" keyproperty="userId" modelvar="utente">
<%
String path = "<img src="" + themeDisplay.getPathImage()+"/user_portrait?screenName="+utente.getScreenName()+"&companyId="+utente.getCompanyId() + "" width="50px">" +"<br>" + utente.getFullName();
%>
<liferay-ui:search-container-column-text name="name" value="<%= path %>" />
</liferay-ui:search-container-row>
<liferay-ui:search-iterator />
</liferay-ui:search-container>
<liferay-ui:search-container delta="10" emptyResultsMessage="no-users-were-found" />
</user>
Regards
Matt S., modificado hace 11 años.
RE: search container error
Junior Member Mensajes: 36 Fecha de incorporación: 29/11/12 Mensajes recientes
I've solved the problem