Merry Christmas everyone

,
I have a portle that prettends to access the table _User, get a list of all user and in case
of a selected one can update the first and last name.
But it does not work. No error, simplely it does anything.
Here is the main jsp code in the list.jsp file,
1
2<%@page import="com.liferay.portal.kernel.util.ListUtil"%>
3<%@ include file="/html/init.jsp" %>
4
5<h4>Test User List</h4>
6
7<%
8int count = UserLocalServiceUtil.getUsersCount();
9List<User> users = UserLocalServiceUtil.getUsers(0, count);
10%>
11
12<%
13PortletURL iteratorURL = renderResponse.createRenderURL();
14iteratorURL.setParameter("jspPage", "/html/list.jsp");
15
16PortletURL updateUserURL = renderResponse.createActionURL();
17updateUserURL.setParameter("jspPage", "/html/update.jsp");
18
19PortletURL detailsURL = renderResponse.createRenderURL();
20detailsURL.setParameter("jspPage", "/html/details.jsp");
21%>
22
23<liferay-ui:search-container delta="4" iteratorURL="<%= iteratorURL %>"
24 emptyResultsMessage="Sorry. There are no items to display.">
25
26 <liferay-ui:search-container-results
27 total="<%= users.size() %>"
28 results="<%= ListUtil.subList(users, searchContainer.getStart(), searchContainer.getEnd()) %>"
29 />
30
31 <liferay-ui:search-container-row modelVar="user"
32 className="com.liferay.portal.model.User">
33
34 <%
35 detailsURL.setParameter("userId", String.valueOf(user.getUserId()));
36 detailsURL.setParameter("backURL", themeDisplay.getURLCurrent());
37 %>
38 <liferay-ui:search-container-column-text name="User Full Name">
39 <aui:a href="<%= detailsURL.toString() %>"><%= user.getFullName() %></aui:a>
40 </liferay-ui:search-container-column-text>
41
42 <% updateUserURL.setParameter("userId", String.valueOf(user.getUserId())); %>
43 <liferay-ui:search-container-column-text name="Update">
44 <a href="<%= updateUserURL.toString() %>">Update »</a>
45 </liferay-ui:search-container-column-text>
46
47 <liferay-ui:search-container-column-jsp name="Actions"
48 path="/html/actions.jsp" />
49
50 </liferay-ui:search-container-row>
51
52 <liferay-ui:search-iterator searchContainer="<%= searchContainer %>" />
53
54</liferay-ui:search-container>
55
56<br/><a href="<portlet:renderURL/>">« Go Back</a>
it seems that exists an issue in the line,
<liferay-ui:search-container delta="4" iteratorURL="<%= iteratorURL %>"
emptyResultsMessage="Sorry. There are no items to display.">
I am not sure if delta="4" is correct. If someone could clear what it means
I shold be glad.
Here is the view.jsp file that causes no problem,
1
2<%@ include file="/html/init.jsp" %>
3
4Welcome to our Test User
5
6<%
7 PortletURL listUsersURL = renderResponse.createRenderURL();
8 listUsersURL.setParameter("jspPage", "/html/list.jsp");
9%>
10
11<br/><a href="<%= listUsersURL.toString() %>">Show all users »</a>
Should be there some kind one who could help me.
Regards,
Jose
Please sign in to flag this as inappropriate.