Wicket 1.5 adding a resource used from css?

2010-09-14 Thread nino martinez wael
Hi I've been wondering how I can add a resource used from the css (I cant seem to remember how to do it).. This is what I have : public class WicketApplication extends WebApplication { /** * Constructor */ public WicketApplication() { }

Re: Wicket 1.5 adding a resource used from css?

2010-09-14 Thread Martin Grigorov
I am not sure right now what is wrong with this case but you can also mount the resource with ResourceMapper at any path you want. File a bug for this failing case. On Tue, Sep 14, 2010 at 9:10 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi I've been wondering how I can add a

Re: Wicket 1.5 adding a resource used from css?

2010-09-14 Thread nino martinez wael
How do I do it with resourcemapper..? Im wondering if I am giving the wrong path for the resource somehow? 2010/9/14 Martin Grigorov mgrigo...@apache.org: I am not sure right now what is wrong with this case but you can also mount the resource with ResourceMapper at any path you want. File a

Re: Wicket 1.5 adding a resource used from css?

2010-09-14 Thread Martin Grigorov
I had to tell you that ResourceMapper is available only in 1.5-m2.1 (currently voted) The usage is quite simple: MyApp#init() { super.init(); getRootRequestMapperAsCompound().add(new ResourceMapper(mount/path, resourceReference)); } On Tue, Sep 14, 2010 at 9:52 AM, nino martinez wael

Re: Wicket 1.5 adding a resource used from css?

2010-09-14 Thread nino martinez wael
Yeah it is simple, doing this: @Override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this, getGuiceInjector())); ResourceMapper htcResourceMapper

Re: Wicket 1.5 adding a resource used from css?

2010-09-14 Thread Martin Grigorov
On Tue, Sep 14, 2010 at 10:22 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Yeah it is simple, doing this: @Override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this,

Re: Wicket 1.5 adding a resource used from css?

2010-09-14 Thread nino martinez wael
Ok fixing it so it should work by doing this: CSS: behavior: url(../../resource/border-radius.htc); Java @Override protected void init() { super.init(); addComponentInstantiationListener(new GuiceComponentInjector(this,

Re: Wicket 1.5 adding a resource used from css?

2010-09-14 Thread Peter Ertl
Am 14.09.2010 um 11:11 schrieb Martin Grigorov: On Tue, Sep 14, 2010 at 10:22 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Yeah it is simple, doing this: @Override protected void init() { super.init();

Re: Wicket 1.5 adding a resource used from css?

2010-09-14 Thread Peter Ertl
-- I would not recommend tailing slashes for resources names. -- The mount path is not a prefix to the resource but a full path, you probably want this instead: getRootRequestMapperAsCompound().add(new ResourceMapper(/resources/border-radius.htc, new

Re: Wicket 1.5 adding a resource used from css?

2010-09-14 Thread nino martinez wael
Yeah this was my starting point. But it did not work heres the log msg: 12:06:08.309 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log - call filter wicket.WicketWarp 12:06:08.309 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] WARN

Re: Wicket 1.5 adding a resource used from css?

2010-09-14 Thread Peter Ertl
Did you put 'border-radius.htc' in the same package where this CSS is located? How your refer to the CSS from your page? Do you use wicket:link or response.renderCSSReference(...) ? Can you paste your code to some pastebin and post the link here? Am 14.09.2010 um 09:10 schrieb nino martinez

Re: Wicket 1.5 adding a resource used from css?

2010-09-14 Thread nino martinez wael
here : https://issues.apache.org/jira/browse/WICKET-3046 2010/9/14 nino martinez wael nino.martinez.w...@gmail.com: Yeah this was my starting point. But it did not work heres the log msg: 12:06:08.309 [13389...@qtp-9605638-3 - /wicket/bookmarkable/border-radius.htc] DEBUG org.mortbay.log -

Re: Wicket 1.5 adding a resource used from css?

2010-09-14 Thread nino martinez wael
Yes put the border-radius.htc in the same package and used the response.renderCSSReference(...)... 2010/9/14 Peter Ertl pe...@gmx.org: Did you put 'border-radius.htc' in the same package where this CSS is located? How your refer to the CSS from your page? Do you use wicket:link or