Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As stated, extending the menu can be done through any even handler, even handlers from other modules.  You will see plenty examples of this approach when using AdminWebModule or DebugWebModule, and in the final part of this primer we'll do exactly the same thing when creating multiple applications.

Wrapping up

That wraps up this part of the primer series.  We mainly zoomed in on some web templating features that AcrossWebModule brings to the game.  We showed how to create layouts and link backend code with Thymeleaf template files.  Additionally we've seen how constructs like WebResourceRegistry and Menu can help you to dynamically configure templates from Java code.

In the next part of the series we'll continue extending our example by switching to JPA entities and building a basic administration UI.