Testing a panel in isolation (component id not found).

2014-03-17 Thread Jens Jahnke
Hi, I'm trying to test a panel in isolation using `startComponentInPage(C)`. The test goes as follows: MyDataModel d = ... Panel p = new MyCustomPanel(id, new LoadableDataModel(d)); tester.startComponentInPage(p); Upon execution I get this output: Unable to find component with id 'id' in

Re: Testing a panel in isolation (component id not found).

2014-03-17 Thread Jens Jahnke
Hi, On Mon, 17 Mar 2014 13:05:57 +0200 Martin Grigorov mgrigo...@apache.org wrote: MG This is the right way. MG Can you show us the code that causes this error ? MG #startComponentInPage() should not fail with such error ... the exception is thrown at the line with tester.startComponentInPage,

Re: Testing a panel in isolation (component id not found).

2014-03-17 Thread Jens Jahnke
On Mon, 17 Mar 2014 13:38:29 +0200 Martin Grigorov mgrigo...@apache.org wrote: MG I meant the test code that leads to the exception. Okay, here it is: private WicketTester tester; @Before public void setUp() throws Exception { tester = new WicketTester(new MyApplication()); } @Test public

Re: Testing a panel in isolation (component id not found).

2014-03-17 Thread Jens Jahnke
On Mon, 17 Mar 2014 13:58:59 +0200 Martin Grigorov mgrigo...@apache.org wrote: MG This method doesn't add the children components. MG So trying to render this panel (via #startComponentInPag(panelInstance)) MG will fail because there are HTML elements with wicket:id in the markup MG which have no

Testing panels

2013-10-20 Thread Jens Jahnke
Hi, I'm using wicket 6.11.0 and try to test some panels. The test code looks like this: public class NewRelicHeaderTest { private WicketTester tester; @Before public void setUp() throws Exception { tester = new WicketTester(new MyApplication()); } @Test public

Re: Testing panels

2013-10-20 Thread Jens Jahnke
On Sun, 20 Oct 2013 10:30:33 +0200 per.newgro per.new...@gmx.ch wrote: PN Die you wrote already the markup file? It should be named PN NewRel...Panel.HTML Argh, thanks for the hint. My markup file was named wrong it read NewRelicHeaderCode.html. :p I changed it to NewRelicHeader.html but now I

Re: Testing panels

2013-10-20 Thread Jens Jahnke
On Sun, 20 Oct 2013 10:51:25 +0200 Jens Jahnke jan0...@gmx.net wrote: JJ Unable to find component with id 'newrelic-header' in JJ [NewRelicHeader [Component id = testObject]] Expected: JJ 'testObject:newrelic-header'. Found with similar names: JJ 'testObject:new-relic-header' I should stop

Re: Documentation for RequestLogger

2013-08-07 Thread Jens Jahnke
Hi, On Tue, 6 Aug 2013 15:11:34 -0400 Paul Bors p...@bors.ws wrote: PB Isn't Log4J shipped with the quick-start? PB PB Create yourself a quick-start and analyze it: PB http://wicket.apache.org/start/quickstart.html PB PB PS: You can also check the initialization related topics as well as PB

Re: Documentation for RequestLogger

2013-08-07 Thread Jens Jahnke
Hi, On Wed, 7 Aug 2013 10:11:30 +0200 Martin Grigorov mgrigo...@apache.org wrote: MG On Wed, Aug 7, 2013 at 10:07 AM, Jens Jahnke jan0...@gmx.net MG wrote: MG MG Hi, MG MG On Tue, 6 Aug 2013 15:11:34 -0400 MG Paul Bors p...@bors.ws wrote: MG MG PB Isn't Log4J shipped with the quick-start

Documentation for RequestLogger

2013-08-06 Thread Jens Jahnke
Hi, I'd like to know if there is an official documentation for RequestLogger anywhere? I found several small bits on the net, but nothing that gives me a clue how to actually do some logging. I know that I have to initialise it somehow like this: IRequestLoggerSettings requestLogger =

Re: Wicket, Heroku and scaling

2013-01-11 Thread Jens Jahnke
On Fri, 11 Jan 2013 09:59:35 -0500 William Speirs wspe...@apache.org wrote: WS @Jens Jahnke if you do create an ISessionStore for redis, please WS post back if you're willing to share. I could see the use in that! WS WS Thanks... Of course I'll do that. But it will take some time because I can

Wicket, Heroku and scaling

2013-01-09 Thread Jens Jahnke
Hi, I've successfully deployed my first wicket app to heroku and would like to know if there are any experiences regarding scaling. Would the app benefit from rolling out more dynos? It runs via embedded jetty using a starter class. My Procfile looks like this: web: java -cp

Re: Wicket, Heroku and scaling

2013-01-09 Thread Jens Jahnke
On Wed, 9 Jan 2013 18:14:51 +0100 Martijn Dashorst martijn.dasho...@gmail.com wrote: MD Would the app benefit from rolling out more dynos? MD MD If your app is stateful and depends on the session: MD it would suck, because heroku doesn't support sticky sessions. MD Therefore requests will be

Re: Apache Wicket is a Flawed Framework

2011-11-18 Thread Jens Jahnke
Hi, On Fri, 18 Nov 2011 11:04:39 +0100 kamiseq kami...@gmail.com wrote: K but it is true that before I read wicket in action I was like a K child in fog :/ I totally agree with that. I'm just starting with wicket and without the book I think I would have dumped it because there is not much