Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added Suppressing the Tapestry Default Stylesheet, from http://tapestry.1045711.n5.nabble.com/CSS-JS-inclusion-question-td4886816.html#a4889490

Tapestry

...

Cascading Stylesheet Support Support

Wiki Markup
{float:right|background=#eee}
{contentbylabel:title=Related Articles|showLabels=false|showSpace=false|space=@self|labels=assets}
{float}

...

Naturally, the conditional part can be any other IE conditional expression, such as "lt IE 8".

Suppressing the Tapestry Default Stylesheet

Though it should be rarely needed, you can prevent Tapestry's default stylesheet from loading by overriding the configuration in your application's module (normally AppModule.java):

Code Block
java
java
titleAppModule.java (partial)

@Contribute(MarkupRenderer.class)
public static void deactiveDefaultCSS(OrderedConfiguration<MarkupRendererFilter> configuration)
{
    configuration.override("InjectDefaultStyleheet", null);
}

Note: In Tapestry 5.3 and later, the misspelled "InjectDefaultStyleheet" is corrected to "InjectDefaultStylesheet"