Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

  • 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?

like image 234
Martin Avatar asked Feb 25 '09 03:02

Martin


1 Answers

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.

like image 158
Sergey Avatar answered Oct 25 '22 07:10

Sergey