You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Marc S." <ms...@gmx.de> on 2008/12/31 10:09:15 UTC

Re: Class aliases for shared resources

I have the same problem now with Wicket 1.4-rc1.

Anyone knows if this is a bug or am I doing something wrong?

Thanks,
Marc


hbf wrote:
> 
> I have a shared resource that I add in my application's init() method  
> via
> 
>      SharedResources sharedResources = getSharedResources();
>      sharedResources.add("repo", new MyResouce());
>      sharedResources.putClassAlias(Application.class, "app");
>      sharedResources.putClassAlias(MyResouce.class, "tmp");
> 
> I can access my resource via e.g.
> 
>   
> http://localhost:8080/app/resources/org.apache.wicket.Application/repo?nid=12
> 
> but both
> 
>    http://localhost:8080/app/resources/app/repo?nid=12
>    http://localhost:8080/app/resources/tmp/repo?nid=12
> 
> do not work. Any ideas why?
> 
> Thanks!
> Kaspar
> 

-- 
View this message in context: http://www.nabble.com/Class-aliases-for-shared-resources-tp15954706p21228904.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Class aliases for shared resources

Posted by "Marc S." <ms...@gmx.de>.
Nobody here with an answer?

Problem still open here.



Marc S. wrote:
> 
> I have the same problem now with Wicket 1.4-rc1.
> 
> Anyone knows if this is a bug or am I doing something wrong?
> 
> Thanks,
> Marc
> 
> 
> hbf wrote:
>> 
>> I have a shared resource that I add in my application's init() method  
>> via
>> 
>>      SharedResources sharedResources = getSharedResources();
>>      sharedResources.add("repo", new MyResouce());
>>      sharedResources.putClassAlias(Application.class, "app");
>>      sharedResources.putClassAlias(MyResouce.class, "tmp");
>> 
>> I can access my resource via e.g.
>> 
>>   
>> http://localhost:8080/app/resources/org.apache.wicket.Application/repo?nid=12
>> 
>> but both
>> 
>>    http://localhost:8080/app/resources/app/repo?nid=12
>>    http://localhost:8080/app/resources/tmp/repo?nid=12
>> 
>> do not work. Any ideas why?
>> 
>> Thanks!
>> Kaspar
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Class-aliases-for-shared-resources-tp15954706p21510200.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org