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


<portlet:defineobjects />
<theme:defineobjects />
&lt;% List<user> list=UserLocalServiceUtil.getOrganizationUsers(10904);

%&gt;

<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">
	&lt;%
    
    String path = "<img src="&quot; + themeDisplay.getPathImage()+&quot;/user_portrait?screenName=&quot;+utente.getScreenName()+&quot;&amp;companyId=&quot;+utente.getCompanyId() + &quot;" width="50px">" +"<br>" + utente.getFullName();   
%&gt;
		<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