Uploaded image for project: 'Portals Bridges (Retired)'
  1. Portals Bridges (Retired)
  2. PB-46

FilterPortlet cannot be used with ServletContextProvider because it doesn't extend GenericPortlet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.0.1
    • portletfilter
    • None

    Description

      Scott Anderson reported the following on the bridges-user mailing list:

      <quote>
      I was hoping to use the ServletContextProvider interface for obtaining the ServletContext, ServletRequest, & ServletResponse given a FilterPortlet implementation. Unfortunately, the ServletContextProvider requires that it be provided a GenericPortlet which FilterPortlet is not. I am going to go ahead and roll my own FilterPortlet that is a subclass of GenericPortlet but I thought I'd note this inconsistency so that this problem can hopefully be resolved in a subsequent release of Portals Bridges.

      Scott
      </quote>

      After checking the current implementation of FilterPortlet which only implements the Portlet and PortletConfig interfaces (just as GenericPortlet), I think simply extending GenericPortlet will do the trick and should have no unexpected side-effects.

      Attachments

        Issue Links

          Activity

            People

              ate Ate Douma
              ate Ate Douma
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: