For every JPA entity class I have a associated properties file in a package called resources under the package of the entity classes. In the files the display label, title, description of the entity and it's attributes are given for internationalization. The keys in the files are not necessarily different for different classes, each class uses a "Label" key for it's display label.
I tried to include this in the wicket resource mechanism by adding a ResourceLoader that uses a BundleStringResourceLoader for each entity class, which is used when a component or it's ancestor implement a EntityClassHolder Interface and can give an entity class. But this does not work, since the String Resources are cached for the first hit entity class, and the cache gives the reply for all other entity classes. So my idea was not sufficient :-( Of course I can write my own mechanism of getting the strings from the properties encapsulated in a model. But wickets resource handling is so sophisticated, that I suppose there is a more elegant way, I do not see. How would you implement resource loading fore files associated to entity classes, not to component hierarchy? Thank You Dieter Tremel --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org