Hi,
I'm currently developing a portlet for Liferay (using the Spring MVC framework). Now I just used the displaytag library for implementing paging on a list I'm displaying on the portlet.
My problem now is that I would need to detect whether the current request has been started by the paging control of the displaytag library. What I found is that when doing paging, a parameter is added in the URL that looks like "d-4157739-p=2" which indicates the current page that is shown. So I could do
int isPagingRequest = PortletRequestUtils.getIntParameter(request, "d-1332617-p", -1);
..and if the isPagingRequest (which I could change to a boolean) has a value then the request has been initiated by the displaytag paging. This is however very bad coding so I'd like to avoid it. Moreover the number between the "d" and "p" varies which makes it really hard to detect it.
Does someone have a suggestion how I can detect whether the current request has been provocated by a paging??
Thanks a lot