String Resources associated with entity classes

2012-10-27 Thread Dieter Tremel
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

Re: String Resources associated with entity classes

2012-10-27 Thread Bas Gooren
Hi, So just to confirm: Say you have an entity House, you'll have House.class House.properties 1) where in the properties file you have a key Label with a value? 2) and in wicket you say getString(House.Label), or new ResourceModel(House.Label)? If this is the case, write a custom string

How to know the country of the user

2012-10-27 Thread Paolo
How can I know the country of the user that is connected to my wicket page? I only suppose to check the IP address with: String ipAddress = ((ServletWebRequest) RequestCycle.get().getRequest()).getContainerRequest().getRemoteHost(); And than with command line whois check the country whois