[
https://issues.apache.org/jira/browse/WICKET-3640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-3640.
-------------------------------------
Resolution: Not A Problem
> 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