java.lang.IllegalArgumentException: bundle context should be set before refreshing the application context

2009-03-31 Thread Charles Moulliard
| ERROR | localShell | ContextLoader | mework.web.context.ContextLoader 215 | Context initialization failed java.lang.IllegalArgumentException: bundle context should be set before refreshing the application context at org.springframework.util.Assert.notNull(Assert.jav a:112

application context in links

2008-08-28 Thread jnesbitt
I'd like to link to static documents in the same web app that are named in the database. Currently I'm using ExternalLink but that obviously doesn't use the application context in it's path. This would be a nice to have for development purposes. Is there a way for me to get the application

Re: application context in links

2008-08-28 Thread Igor Vaynberg
see ContextImage for an example -igor On Thu, Aug 28, 2008 at 9:23 AM, jnesbitt [EMAIL PROTECTED] wrote: I'd like to link to static documents in the same web app that are named in the database. Currently I'm using ExternalLink but that obviously doesn't use the application context in it's

Re: Resources relative to application context

2008-07-16 Thread Ayodeji Aladejebi
to application context Actually, this should Just Work (tm). Are you running on Tomcat? Regards, Alastair On Mon, Mar 31, 2008 at 4:34 AM, [EMAIL PROTECTED] wrote: You got it -igor On 3/30/08, Zheng, Xiahong [EMAIL PROTECTED] wrote: Thanks Igor. But my resource in this case is style

Application Context

2008-04-09 Thread Pinger
(applicationContext.xml); this causes issues cause things are created 2 times.. Thanks -- View this message in context: http://www.nabble.com/Application-Context-tp16592544p16592544.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Application Context

2008-04-09 Thread James McLaughlin
); this causes issues cause things are created 2 times.. Thanks -- View this message in context: http://www.nabble.com/Application-Context-tp16592544p16592544.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Application Context

2008-04-09 Thread Pinger
); this causes issues cause things are created 2 times.. Thanks -- View this message in context: http://www.nabble.com/Application-Context-tp16592544p16592544.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Application Context

2008-04-09 Thread Edvin Syse
Pinger wrote: All the examples I see do something like WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext( this.getServletContext()); how do I do the this.getServletContext() when I am not in the wicket file? Maybe you could implement

Re: Application Context

2008-04-09 Thread Edvin Syse
.. or just implement ApplicationContextAware ofcourse :) -- Edvin Edvin Syse skrev: Pinger wrote: All the examples I see do something like WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext( this.getServletContext()); how do I do the

Re: Resources relative to application context

2008-03-31 Thread Al Maw
that mean I need to write a similar component to accomplish that? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Sunday, March 30, 2008 3:48 PM To: users@wicket.apache.org Subject: Re: Resources relative to application context see source of ContextImage

RE: Resources relative to application context

2008-03-31 Thread Zheng, Xiahong
Yes, on tomcat 6.0. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Al Maw Sent: Monday, March 31, 2008 10:12 AM To: users@wicket.apache.org Subject: Re: Resources relative to application context Actually, this should Just Work (tm). Are you running

Resources relative to application context

2008-03-30 Thread Zheng, Xiahong
How does wicket find such resource, e.g. as follows? link href=style/my.css type=text/css rel=stylesheet / I found this only works if I mount my pages with mount(/pages, PackageName.forClass(Home.class)); Otherwise, I need to specify absolute URL. This is fine. However, the subsequent

Re: Resources relative to application context

2008-03-30 Thread Igor Vaynberg
see source of ContextImage for details -igor On Sun, Mar 30, 2008 at 11:50 AM, Zheng, Xiahong [EMAIL PROTECTED] wrote: How does wicket find such resource, e.g. as follows? link href=style/my.css type=text/css rel=stylesheet / I found this only works if I mount my pages with

RE: Resources relative to application context

2008-03-30 Thread Zheng, Xiahong
: Resources relative to application context see source of ContextImage for details -igor On Sun, Mar 30, 2008 at 11:50 AM, Zheng, Xiahong [EMAIL PROTECTED] wrote: How does wicket find such resource, e.g. as follows? link href=style/my.css type=text/css rel=stylesheet / I found this only works

Re: How to inject Spring Application context into WicketTester

2008-03-07 Thread lars vonk
WicketTest(wicketApplication); } } Hopes this helps. Lars On Fri, Mar 7, 2008 at 12:11 PM, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi, my wicket applicatin uses the SpringComponentInjector and @SpringBean annotations, which works great at runtime where the application context is present

Re: How to inject Spring Application context into WicketTester

2008-03-07 Thread Nino Saturnino Martinez Vazquez Wael
Checkout the blog tutorial, the unit test part http://cwiki.apache.org/confluence/display/WICKET/Blog+Tutorial Jörn Zaefferer wrote: Hi, my wicket applicatin uses the SpringComponentInjector and @SpringBean annotations, which works great at runtime where the application context is present

Re: How to inject Spring Application context into WicketTester

2008-03-07 Thread Nino Saturnino Martinez Vazquez Wael
and @SpringBean annotations, which works great at runtime where the application context is present. I'd like to use WicketTester for JUnit tests: tester = new WicketTester(new MyApplication()); In MyApplication#init, the component injector is created: addComponentInstantiationListener(new

Re: How to inject Spring Application context into WicketTester

2008-03-07 Thread Igor Vaynberg
spring wiki page shows how to set it up... -igor On Fri, Mar 7, 2008 at 3:11 AM, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi, my wicket applicatin uses the SpringComponentInjector and @SpringBean annotations, which works great at runtime where the application context is present. I'd

Re: How to inject Spring Application context into WicketTester

2008-03-07 Thread Nino Saturnino Martinez Vazquez Wael
/WICKET/Blog+Tutorial Jörn Zaefferer wrote: Hi, my wicket applicatin uses the SpringComponentInjector and @SpringBean annotations, which works great at runtime where the application context is present. I'd like to use WicketTester for JUnit tests: tester = new WicketTester(new MyApplication