You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/04/26 09:28:03 UTC

[jira] [Commented] (WICKET-3640) getSharedResources().putClassAlias() no longer exists in 1.5

    [ https://issues.apache.org/jira/browse/WICKET-3640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025108#comment-13025108 ] 

Martin Grigorov commented on WICKET-3640:
-----------------------------------------

This use case is easily supported by WebApplication#mountResource("/global/images", new ImageResourceReference());
ImageResourceReference should extend ResourceReference and its #getResource() should return ImageResources.

No need to support aliases.

> getSharedResources().putClassAlias() no longer exists in 1.5
> ------------------------------------------------------------
>
>                 Key: WICKET-3640
>                 URL: https://issues.apache.org/jira/browse/WICKET-3640
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC2, 1.5-RC3
>         Environment: N/A
>            Reporter: Alexandros Karypidis
>              Labels: globals, resource, wicket
>
> 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? 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira