Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Path Finder LifeRay
scroll bar in portlet
October 5, 2009 3:22 AM
Answer

Path Finder LifeRay

Rank: Expert

Posts: 262

Join Date: September 18, 2009

Recent Posts

hi all,
I am developing a portlet which having more than 1000 results records.
I want to limit the result to pages, each containing 20 to 30 records.
Is there any function or util or package will be useful to create


Thanks in advance,
Jignesh Vachhani
RE: scroll bar in portlet
October 5, 2009 5:16 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 780

Join Date: March 10, 2008

Recent Posts

Hi,

Once you will get list object into your jsp then you can use

<display:table> jstl tab.

And by using this tag you can also limit your list with pagination.

Jignesh
Cignex Technologies
Amit Jha
RE: scroll bar in portlet
February 23, 2010 1:12 AM
Answer

Amit Jha

Rank: New Member

Posts: 6

Join Date: February 23, 2010

Recent Posts

hi jignesh,

Your solution seems to be fine,but i have a doubt that where should it be used .
I mean ,i want to make a portlet scrollable and i have the result in a list so how to use <display:table>jstl tag what is the syntax to code ?

please reply

thanks,
Amit
Amit Jha
RE: scroll bar in portlet
February 23, 2010 1:23 AM
Answer

Amit Jha

Rank: New Member

Posts: 6

Join Date: February 23, 2010

Recent Posts

hi jignesh,

Is there any way to set pagination for portlet in properties file??

please reply

thanks,
Amit
Gnaniyar Zubair
RE: scroll bar in portlet
February 23, 2010 2:10 AM
Answer

Gnaniyar Zubair

Rank: Liferay Master

Posts: 603

Join Date: December 19, 2007

Recent Posts

Hi,

You can use liferay search container :

 1<%
 2 List articleList = (List)request.getAttribute("articleList");
 3%.
 4 <liferay-ui:search-container
 5        delta="5"
 6        emptyResultsMessage="Sorry. There are no items to display.">
 7
 8        <liferay-ui:search-container-results
 9        total="<%= articleList.size() %>"
10        results="<%= ListUtil.subList(articleList, searchContainer.getStart(), searchContainer.getEnd()) %>"
11            />
12        <liferay-ui:search-container-row
13            modelVar="article"
14            className="com.liferay.portlet.journal.model.JournalArticle">
15
16         <liferay-ui:search-container-column-text name="Product"
17            property="title" href="<%= articleUrl.toString()%>" />
18         
19         <liferay-ui:search-container-column-text name="Page Name"
20                                                     property="urlTitle"/>
21       </liferay-ui:search-container-row>
22        <liferay-ui:search-iterator searchContainer="<%= searchContainer %>" />
23 </liferay-ui:search-container>


Please refer this wiki link:

Searchcontainer:WIKI

HTH

- Gnaniyar Zubair
Amit Jha
RE: scroll bar in portlet
February 24, 2010 4:24 AM
Answer

Amit Jha

Rank: New Member

Posts: 6

Join Date: February 23, 2010

Recent Posts

hi Gnaniyar Zubair,

thanks for your help.
you solved my problem.emoticon

thanks,
Amit
Manish Kumar
RE: scroll bar in portlet
January 3, 2013 1:58 AM
Answer

Manish Kumar

Rank: Junior Member

Posts: 94

Join Date: March 1, 2012

Recent Posts

Hello Amit,
Can you please post the code you used for the scroll here, and ways to achieve that.
I am also facing the same problem.
Thanks in advance,
Manish Kumar