see iresourcesettings#addstringresourceloader() make one that loads your properties from some file you keep on the classpath
-igor On Mon, Mar 16, 2009 at 4:00 PM, Trent Larson <[email protected]> wrote: > I have 2 web applications, and I would like to allow them to share the same > text files. The only way I've found is to make each WebApplication class > extend a common ParentApplication class and make a > ParentApplication.properties file to contain the common text; then I package > the common ParentApplication class and properties in a separate jar project > and include that in each of the web projects. This works great in Eclipse > in an exploded environment; unfortunately, it looks like it does not work > when I include the ParentApplication artifacts inside a separate jar. I get > the following error: > > Caused by: java.util.MissingResourceException: Unable to find property: ' > squeeze.presented.by' for component: [class=com.max.web.page.bizopp1Page] > at org.apache.wicket.Localizer.getString(Localizer.java:269) > ..... > > > Is there any way to make this work? Is there another approach where I can > share the text between these projects? > > Thanks for any suggestions. > Trent > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
