What is the preferred way to do site templates and themes with Wicket?
Question
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:
- Markup Inheritance (description)
- Borders (description)
- Reusable Panels (description)
- Fragments (description)
What is the best practices / "right" way to do this in Wicket? Or do these different methods each have specific kinds of uses?
Solution
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow