Search code examples
javahtmlwicketcode-reusereusability

Multiple classes for one markup in apache wicket


Is it possible to have multiple classes for one HTML markup? Can you provide an example?


Solution

  • You can do this by creating an abstract class for a page with its own HTML file. Using the < wicket:child> tag you can add data specific to the subclass of the page with their own html file. You'd have to add the componts in the abstract class, not the subclass.