Hi Andy,
This is hiren here with the same problem again. You had given me the solution (below) to solve the paging problem with my Portlet application. I implemented exactly the same you had suggested and it worked for me as well, but I had not tested it correctly and I noticed recently that, it just works one time only. Means, If display tag is displaying the results in 3 pages (with paging enabled), now if I click on link of page 2 from page 1, It goes correctly to the page 2, and then if I click on the link of page 3 from page 2, it doesn't go on the page 3, instead it remains in the page 2 only, so the paging works just one time, after that no matter how many different page links are there, it doesn't work. Have you faced such problem before?? Let me know if you need more information. Suggestions/comments will be very helpful. Thanks, Hiren. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Pruitt Sent: Thursday, April 14, 2005 3:23 PM To: [email protected] Subject: RE: [displaytag-user] Problems while Using DisplayTag with Java Portlets You will need to provide an implementation of RequestHelperFactory, which is responsible for providing RequestHelper objects. We use an internally developed JSR 168 portlet server called Pegboard; here is the code we use to customize for DisplayTag. It should (roughly) work for any 168 portlet server. (There is also an aspect to help with exports, but that is somewhat unrelated.) // RequestHelperFactory public RequestHelper getRequestHelperInstance(PageContext pageContext) { HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); HttpServletResponse response = (HttpServletResponse)pageContext.getResponse() ; RenderResponse resp = (RenderResponse) pageContext.findAttribute("javax.portlet.response"); if ( resp != null ){ return new DisplaytagPegboadRequestHelper( resp, request, response); } else { return new DefaultRequestHelper( request, response); } } // DefaultRequestHelper public DisplaytagPegboadRequestHelper(RenderResponse renderResponse, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) { super(httpServletRequest, httpServletResponse); this.renderResponse = renderResponse; } public Href getHref() { PortletURL url = renderResponse.createRenderURL(); url.setParameters(getParameterMap()); Href href = new Href(url.toString()); return href; } > > Hi there, > > I have been trying to use DisplayTag with Java Portlet. I am > using the paging feature of DisplayTag as I have large > collection of data to present. So once configuring paging > attribute like below, > > <display:table name="${pageList}" pagesize="3"> > > The jsp page displays first 3 records and it also display > links for Next/Last for navigation. > > Now the problem is that, these Next/Last links are not > working. Because the display tag by default creates a > relative link to the JSP but Portlet container doesn't take > the URL as it requires either ActionURL or RenderURL. > > How can I configure ActionURL or RenderURL links within > data I am displaying through DisplayTag. > > Any suggestions/ comment would be really helpful. > Thanks, > Hiren. > > > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick _______________________________________________ displaytag-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/displaytag-user ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ displaytag-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/displaytag-user

