DisplayTag

Navigational URLs incorrect when using PortletHref

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1
  • Fix Version/s: 1.1
  • Component/s: Container Compability
  • Labels:
    None
  • Application server:
    uPortal 3.0-M3, Vignette Portal 7.2.1

Description

The First, Prev, Next and Last URLs always point to the last page of items in the table when using the portlet support API.

Activity

Hide
Eric Dalquist added a comment -
The cause of the problem is PortletHref.clone() does not copy the Map of parameters used by the class. The result is all PortletHref objects created by clone() share a single parameter map. This manifests itself as with the First, Prev, Next and Last links generated by the library to be the same URL.

The attached patch fixes the issue.
Show
Eric Dalquist added a comment - The cause of the problem is PortletHref.clone() does not copy the Map of parameters used by the class. The result is all PortletHref objects created by clone() share a single parameter map. This manifests itself as with the First, Prev, Next and Last links generated by the library to be the same URL. The attached patch fixes the issue.
Hide
fabrizio giustina added a comment -
patch committed, thanks
Show
fabrizio giustina added a comment - patch committed, thanks

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: