Hi Andrea, On Wed, Jun 8, 2011 at 1:11 PM, Andrea Del Bene <[email protected]> wrote: > Hi, > > I've started to explore the converting mechanism of wicket. I've red javadoc > and both Wicket in Action and Wicket Cookbook but there still be something > not completely clear to me. > Converter are created by converter locator, which creates one instance of > converter for each java type, right? So the first question is: are > converters thread safe? If I have two session with two different locale, is > DateConverter thread safe? Looking at the code - yes. DateConverter doesn't keep any state. > > The second question is: if converters are created and registered at > Application level, how can I implement a converter at Session level? > I want to implement a custom date converter based on a date patter which > depends on the current logged user. Well, yes, there is no delegation to the Session as there is such for some other "services" but you can always workaround it by registering your own locator at app level which checks for existing session and does something custom or just falls back to the default app locator. > > Thank you. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
-- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
