Re: Loading global resources in test?

2007-08-22 Thread Erik Underbjerg
/07, Erik Underbjerg [EMAIL PROTECTED] wrote: Thanks for the reply. I did figure out that the WicketTester is not a subclass of MyApplication, and therefore doesn't have access to the MyApplication.properties file. That's also why I was trying to do as you suggest, and add my own

Re: Loading global resources in test?

2007-08-21 Thread Erik Underbjerg
in my tests? I'm using wicket 1.2.6. Thanks in advance. /Erik On 20/08/2007, at 22.55, Igor Vaynberg wrote: it should probably be MyApplication.properties unless you have myApplication.java -igor On 8/20/07, Erik Underbjerg [EMAIL PROTECTED] wrote: Hello, I have just moved some

Re: Loading global resources in test?

2007-08-21 Thread Erik Underbjerg
. -igor On 8/20/07, Erik Underbjerg [EMAIL PROTECTED] wrote: Right, sorry for the typo. I do have both: src/main/java/base/MyApplication.java src/main/java/base/MyApplication.properties The application works as intended: When I start MyApplication, I can access all constants

Loading global resources in test?

2007-08-20 Thread Erik Underbjerg
Hello, I have just moved some localized string resources to a myApplication.properties file, because they need to accessed by different panels and pages, and it works fine. However, when running my unit tests with WicketTester, it can't find the resources in myApplication.properties. I

Re: Callbacks triggered by keyboard...

2007-08-07 Thread Erik Underbjerg
Actually, I have been wondering about something like this. I have a gridView, that I would like to page through using, say, the left and right keyboard arrows. However, I can't seem to figure out how to hook up the javascript that captures the keyboard events to wicket, and make it flip