Re: How to access properties files outside of Wicket components?

2008-06-03 Thread Erik van Oosten
online. Wicket does not offer a way to access resource bundles outside of Wicket components? Michael -Original Message- From: Erik van Oosten [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2008 10:32 PM To: users@wicket.apache.org Subject: Re: How to access properties files

RE: How to access properties files outside of Wicket components?

2008-06-02 Thread Michael Mehrle
outside of Wicket components? Michael -Original Message- From: Erik van Oosten [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2008 10:32 PM To: users@wicket.apache.org Subject: Re: How to access properties files outside of Wicket components? You should the other getResource*() methods

How to access properties files outside of Wicket components?

2008-06-01 Thread Michael Mehrle
I just refactored one of my pages and externalized an inner class into an outer class that however still needs access to that page's property stings. Can I just treat that page's properties file as a resource bundle and retrieve the strings the old fashioned way? Or will there be problems?

RE: How to access properties files outside of Wicket components?

2008-06-01 Thread Michael Mehrle
String getProperty(String key) { return properties.getProperty(key); } -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2008 3:50 PM To: users@wicket.apache.org Subject: How to access properties files outside of Wicket

Re: How to access properties files outside of Wicket components?

2008-06-01 Thread Erik van Oosten
You should the other getResource*() methods, those on Class: http://java.sun.com/javase/6/docs/api/java/lang/Class.html#getResourceAsStream(java.lang.String) Regards, Erik. Michael Mehrle wrote: Right now I had to resort to the solution below, but I would very much like to know the