Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
义锋 金
2 searchcontainer in 2 jsp page problem
March 21, 2013 2:31 AM
Answer

义锋 金

Rank: New Member

Posts: 2

Join Date: November 29, 2012

Recent Posts

Hi everybody ,
I've got problem with 2 searchcontainer in 2 jsp page controled by 2 actions problem .The first page all is right,its pagination "Previous","Next" work ok. Click next page href to the second jsp,the first pagination is ok, the problem is when click the "Next" it back to first jsp not the second pagination's value.
How can i resolve this problem
Thanks!!!

The first JSP
 1
 2<%
 3    PortletURL iteratorURL = renderResponse.createRenderURL();
 4    List<ActivityType> listActivityType=(List<ActivityType>)session.getAttribute("listActivityType");
 5 %>
 6 <liferay-ui:search-container iteratorURL="<%=iteratorURL %>" deltaParam="activityTypeDelta" curParam="activityTypeCur" delta="5" emptyResultsMessage="no activityType">
 7 <liferay-ui:search-container-results results="<%=ListUtil.subList(listActivityType, searchContainer.getStart(), searchContainer.getEnd())%>" total="<%=listActivityType.size()%>" />
 8 <liferay-ui:search-container-row className="com.huateng.activity.entity.ActivityType" keyProperty="id"    modelVar="activityType">
 9        <s:url var="toEdit" action="toEditActivityType">
10            <s:param name="id"><%=activityType.getId() %></s:param>   
11        </s:url>
12.
13.
14.
15<liferay-ui:search-iterator searchContainer="<%= searchContainer %>" paginate="<%= true %>" />
16
17 </liferay-ui:search-container>


The second JSP is similar the first only the action is different
Rahul Pande
RE: 2 searchcontainer in 2 jsp page problem
March 21, 2013 11:30 PM
Answer

Rahul Pande

Rank: Expert

Posts: 308

Join Date: July 6, 2010

Recent Posts

Hi,

Please refer http://www.liferay.com/community/forums/-/message_boards/message/22654132.

Thanks
Rahul