Re: String Resources associated with entity classes

2012-10-28 Thread Dieter Tremel
Hello Bas, Am 27.10.2012 23:04, schrieb Bas Gooren: > So just to confirm: > Say you have an entity House, you'll have > > House.class > House.properties Yes. The beginning of my book example author properties file is (German naming): # Entity Autor LabelPlural=Autoren Label=Autor Title=Autor Des

Re: How to know the country of the user

2012-10-28 Thread Andrea Del Bene
You should try Session.get().getLocale(). By default Session returns the locale of the underlying HttpServletRequest. 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.ge

Remove ?1 from URL on GoogleAnalytics tracked pages

2012-10-28 Thread Sebastien
Hi, For whom might be interested, here is a solution on how to remove ?1 params from tracked page's URL on GoogleAnalytics. This follows a thread entitled "I would url clear, without jsessionid and ?1" To achieve this, the approach is to not attempt to remove/adapt ?1 params from statefull page's

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-28 Thread Sebastien
Hi, To sum-up this thread: we have a (not huge, but still) design issue that annoys several users. A patch* has been provided but some questions remains... Given this, I would suggest a kind-of vote about the several points discussed earlier, in order to enlighten the dev-team about the preferred

Re: How to know the country of the user

2012-10-28 Thread Paolo
Alle domenica 28 ottobre 2012, Andrea Del Bene ha scritto: > You should try Session.get().getLocale(). By default Session returns the > locale of the underlying HttpServletRequest. getLocale return the languange set in the browser, and it is not the same thing of country. You are right for exam

Re: How to know the country of the user

2012-10-28 Thread Wujek Srujek
Locale has more information than just the language. For example: en_US is English in USA; en_UK is English in the UK, it_IT is Italian in Italy, but it_CH is Italian in Switzerland. Your example would differentiate between pt_PT (Portuguese in Portugal) and pt_BR (Portuguese in Brazil). Check out L

Re: How to know the country of the user

2012-10-28 Thread Paolo
Alle domenica 28 ottobre 2012, Wujek Srujek ha scritto: > Locale has more information than just the language. For example: en_US > is English in USA; en_UK is English in the UK, it_IT is Italian in Italy, > but it_CH is Italian in Switzerland. Your example would differentiate > between pt_PT (Portu

Re: How to know the country of the user

2012-10-28 Thread Wujek Srujek
Glad I could help. Please note, though, that Locale.getCountry() might be null, or Locale.getLanguage() might be null, but both being null result in an 'undefined' locale. You might want to take this into account. wujek On Sun, Oct 28, 2012 at 6:45 PM, Paolo wrote: > Alle domenica 28 ottobre 20

Re: [DISCUSS] Security Frameworks

2012-10-28 Thread Timo Schmidt
On Thu 18.10.2012 13:18, Carl-Eric Menzel wrote: > > [X] I use Shiro > > We use Shiro on our project (using wicketstuff's shiro integration and > our own custom Shiro realm implementation). We use it because it gives > us a permission-based approach (not just roles-based) and is more > easily conf

Re: wicket-6 User friendly form validation with Wicket (stuq)

2012-10-28 Thread Rafał Krupiński
On Wed, Oct 24, 2012 at 10:13 AM, Martin Grigorov wrote: > Hi, > > The URL below doesn't load and I cannot see what is his implementation. Hm, it loaded when I posted that message :( Anyway, I would like to have a label for each validated input field and put there any error messages related to t