views:

388

answers:

1

I'm just learning Wicket, and Googling yields different results about how to theme/template a site using Wicket. It appears that the common methods are:

What is the best practices / "right" way to do this in Wicket? Or do these different methods each have specific kinds of uses?

+3  A: 

Have a look at wicket localizer. I think "styles" is what you are looking for.

So if you have only one locale and you want to make "styles" for the Home page, you create:

  • Home.html
  • Home_style1.html
  • Home_styleanother.html

Wicket styles are also applicable to the strings and others resources.

See Localization and Skinning of Applications.

Sergey