I'm playing around to find a nice solution for WICKET-3813 and found this piece of code inside Localizer.java:327 (rev 1132354)
if ((style == null) && (component != null))
{
style = component.getStyle();
}
if (style == null)
{
style = Session.exists() ? Session.get().getStyle() : null;
}
Component.getStyle is final and is just a delegate method to
Session.get().getStyle().
Could be removed.
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099
