Fórumok

Error iterator searchContainer liferay 6.1

thumbnail
Akira Akira, módosítva 11 év-val korábban

Error iterator searchContainer liferay 6.1

Junior Member Bejegyzések: 80 Csatlakozás dátuma: 2010.09.24. Legújabb bejegyzések
<%
String keyword = (String)renderRequest.getAttribute("keyword");

List<tblVmgFellow> articleVmg = tblVmgFellowLocalServiceUtil.gettblVmgFellows(0, tblVmgFellowLocalServiceUtil.gettblVmgFellowsCount());

if(Validator.isNull(keyword)){
%>
<div>Input keyword</div>
<%
}else{

articleVmg = tblVmgFellowLocalServiceUtil.getCusNameProgram(keyword);

articleVmg.size();
}

PortletURL viewURL = renderResponse.createRenderURL();
viewURL.setParameter("javax.portlet.action", "doSearch");

%>


<div style="padding-left: 10px;">
<form action="<portlet:actionURL name="doSearch"></portlet:actionURL>" method="post" >
<input type="text" name="keyword" value="${keyword}" style="width: 200px">
<input type="submit" value="Search">
</form>
<hr color="black">
</div>

<liferay-ui:search-container emptyResultsMessage="no-search-result" delta="2" iteratorURL="<%=viewURL%>" >
<liferay-ui:search-container-results>
<%
results = ListUtil.subList(articleVmg,searchContainer.getStart(),searchContainer.getEnd());
total = articleVmg.size();
pageContext.setAttribute("results", results);
pageContext.setAttribute("total", total);
%>
</liferay-ui:search-container-results>

<liferay-ui:search-container-row className="com.Vmg.edgiftcard.portlet.model.tblVmgFellow" keyProperty="idVmgFellow" modelVar="VmgFellow" >

<liferay-ui:search-container-column-text
name="name"
value="<%= VmgFellow.getFullName()%>"
/>

</liferay-ui:search-container-row>
<liferay-ui:search-iterator />
</liferay-ui:search-container>


When I click on the search button display 3 page then click on the page 2, List <tblVmgFellow> get all size.How to keep size List when click search ?

i need idea? thanks