Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added "Overriding Bootstrap" section

...

In Tapestry 5.4, the "core" JavaScript has a configuration into which you may inject overrides.

Overriding Bootstrap (Tapestry 5.4 and later)

The SymbolConstants.BOOTSTRAP_ROOT ("tapestry.bootstrap-root") symbol tells Tapestry where the Bootstrap css file is. You can override that symbol (see Configuration) to have it point to your own version of Bootstrap (or even to an empty file if you want to eliminate Bootstrap entirely).

Code Block
languagejava
titleAppModule.java (partial)
configuration.add(SymbolConstants.BOOTSTRAP_ROOT, "classpath:/META-INF/assets");

For the above, your bootstrap.css file would be in your app's META-INF/assets/css folder.