You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Alexandros Karypidis <ak...@yahoo.gr> on 2011/04/24 11:36:54 UTC
[MIIGRATE 1.5] Where is "getSharedResources().putClassAlias(...)"
Hello,
Here's my next question regarding migration to 1.5. 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?
Thanks in advance!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: [MIIGRATE 1.5] Where is "getSharedResources().putClassAlias(...)"
Posted by Alexandros Karypidis <ak...@yahoo.gr>.
Just for future reference:
As explained by Martin in the ticket, turns out that now one must:
mountResoruce("/path/to/resource", ResourceReference);
So in my case it's simply:
mountResource("imgres", new ResourceReference(Application.class,
"imgres") {
private static final long serialVersionUID = 1L;
ImageResources imgres = new ImageResources();
@Override
public IResource getResource() {
return imgres;
}
});
Kind regards,
Alex
On Mon, 25 Apr 2011 13:13:22 +0300, Alexandros Karypidis
<ak...@yahoo.gr> wrote:
> Posted:
>
> https://issues.apache.org/jira/browse/WICKET-3640
>
> for investigation. Is there really no alternative to this with Wicket
> 1.5?
>
> On Mon, 25 Apr 2011 09:19:02 +0300, Martin Grigorov
> <mg...@apache.org> wrote:
>
>> Please create a ticket.
>>
>> On Sun, Apr 24, 2011 at 12:36 PM, Alexandros Karypidis
>> <ak...@yahoo.gr> wrote:
>>> Hello,
>>>
>>> Here's my next question regarding migration to 1.5. 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?
>>>
>>> Thanks in advance!
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: [MIIGRATE 1.5] Where is "getSharedResources().putClassAlias(...)"
Posted by Alexandros Karypidis <ak...@yahoo.gr>.
Posted:
https://issues.apache.org/jira/browse/WICKET-3640
for investigation. Is there really no alternative to this with Wicket 1.5?
On Mon, 25 Apr 2011 09:19:02 +0300, Martin Grigorov <mg...@apache.org>
wrote:
> Please create a ticket.
>
> On Sun, Apr 24, 2011 at 12:36 PM, Alexandros Karypidis
> <ak...@yahoo.gr> wrote:
>> Hello,
>>
>> Here's my next question regarding migration to 1.5. 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?
>>
>> Thanks in advance!
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: [MIIGRATE 1.5] Where is "getSharedResources().putClassAlias(...)"
Posted by Martin Grigorov <mg...@apache.org>.
Please create a ticket.
On Sun, Apr 24, 2011 at 12:36 PM, Alexandros Karypidis
<ak...@yahoo.gr> wrote:
> Hello,
>
> Here's my next question regarding migration to 1.5. 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?
>
> Thanks in advance!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org