Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3640

getSharedResources().putClassAlias() no longer exists in 1.5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 1.5-RC2, 1.5-RC3
    • None
    • wicket
    • N/A

    Description

      I was told on the user list to open a ticket for this missing API call. Not sure whether it is a "gap" in 1.5 or there's some alternative (see: http://apache-wicket.1842946.n4.nabble.com/MIIGRATE-1-5-Where-is-quot-getSharedResources-putClassAlias-quot-td3471235.html ).

      I used to publish dynamic image resources (retrieved from DB) as follows:

      protected void init()

      { super.init(); getSharedResources().putClassAlias(org.apache.wicket.Application.class, "global"); getSharedResources().add("images", new ImageResources()); }

      The above would let my image resource reply to the URL:

      http://host/resources/global/images?params=...

      In 1.5, the SharedResources class no longer has a "putClassAlias()" method, so apparently there's something new.

      How do we go about doing this with 1.5?

      Attachments

        Activity

          People

            Unassigned Unassigned
            akarypid Alexandros Karypidis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: