Foren
scroll bar in portlet
path finder liferay, geändert vor 14 Jahren.
scroll bar in portlet
Expert Beiträge: 262 Beitrittsdatum: 18.09.09 Neueste Beiträge
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,
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 R Vachhani, geändert vor 14 Jahren.
RE: scroll bar in portlet
Liferay Master Beiträge: 803 Beitrittsdatum: 10.03.08 Neueste Beiträge
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
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, geändert vor 14 Jahren.
RE: scroll bar in portlet
New Member Beiträge: 6 Beitrittsdatum: 23.02.10 Neueste Beiträge
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
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, geändert vor 14 Jahren.
RE: scroll bar in portlet
New Member Beiträge: 6 Beitrittsdatum: 23.02.10 Neueste Beiträge
hi jignesh,
Is there any way to set pagination for portlet in properties file??
please reply
thanks,
Amit
Is there any way to set pagination for portlet in properties file??
please reply
thanks,
Amit
Gnaniyar Zubair, geändert vor 14 Jahren.
RE: scroll bar in portlet
Liferay Master Beiträge: 722 Beitrittsdatum: 19.12.07 Neueste Beiträge
Hi,
You can use liferay search container :
Please refer this wiki link:
Searchcontainer:WIKI
HTH
- Gnaniyar Zubair
You can use liferay search container :
<%
List articleList = (List)request.getAttribute("articleList");
%.
<liferay-ui:search-container delta="5" emptyresultsmessage="Sorry. There are no items to display.">
<liferay-ui:search-container-results total="<%= articleList.size() %>" results="<%= ListUtil.subList(articleList, searchContainer.getStart(), searchContainer.getEnd()) %>" />
<liferay-ui:search-container-row modelvar="article" classname="com.liferay.portlet.journal.model.JournalArticle">
<liferay-ui:search-container-column-text name="Product" property="title" href="<%= articleUrl.toString()%>" />
<liferay-ui:search-container-column-text name="Page Name" property="urlTitle" />
</liferay-ui:search-container-row>
<liferay-ui:search-iterator searchContainer="<%= searchContainer %>" />
</liferay-ui:search-container>
Please refer this wiki link:
Searchcontainer:WIKI
HTH
- Gnaniyar Zubair
Amit Jha, geändert vor 14 Jahren.
RE: scroll bar in portlet
New Member Beiträge: 6 Beitrittsdatum: 23.02.10 Neueste Beiträge
hi Gnaniyar Zubair,
thanks for your help.
you solved my problem.
thanks,
Amit
thanks for your help.
you solved my problem.
thanks,
Amit
Manish Kumar, geändert vor 11 Jahren.
RE: scroll bar in portlet
Junior Member Beiträge: 93 Beitrittsdatum: 02.03.12 Neueste Beiträge
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
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