Sunday, April 3, 2011

What is the preferred way to do site templates and themes with Wicket?

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?

From stackoverflow
  • 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.

0 comments:

Post a Comment