You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Bob Harner (Jira)" <ji...@apache.org> on 2022/02/15 18:32:00 UTC

[jira] [Closed] (TAP5-2706) Default StyleSheet change doesn't kick in

     [ https://issues.apache.org/jira/browse/TAP5-2706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Harner closed TAP5-2706.
----------------------------
    Resolution: Invalid

Feng, please subscribe to the Apache Tapestry Users mailing list and submit your question there.  This Jira instance is not a general support forum. That's what the Tapestry Users mailing list is for.  Thanks!

> Default StyleSheet change doesn't kick in 
> ------------------------------------------
>
>                 Key: TAP5-2706
>                 URL: https://issues.apache.org/jira/browse/TAP5-2706
>             Project: Tapestry 5
>          Issue Type: Question
>    Affects Versions: 5.7.3
>            Reporter: Feng Gao
>            Priority: Blocker
>              Labels: default-stylesheet
>
> Followed instructions on [https://tapestry.apache.org/css.html] to change Tapestry default stylesheet to use Bootstrap-4.6.1 css, instead of default Bootstrap-4.3.1: 
>  * Tapestry 5.5.0 and later also allows you to have Tapestry not provide any CSS at all. To do that, just add @ImportModule(NoBootstrapModule.class) to your module class. In this case, you'll need to set the tapestry.default-stylesheet (SymbolConstants#DEFAULT_STYLESHEET) configuration symbol to tell Tapestry what's your main CSS file. Otherwise, an exception will be thrown and the webapp won't start.
>  
> Here's what I ended up with in AppModule.java
> {color:#ff0000}@ImportModule(NoBootstrapModule.class){color}
> public class AppModule
> {
> ...........
>     @ApplicationDefaults
>     @Contribute(SymbolProvider.class)
>     public static void setupEnvironment(final MappedConfiguration<String, String> configuration)
>     {
>         ..............
>        {color:#ff0000}configuration.add(SymbolConstants.DEFAULT_STYLESHEET, "context:css/bootstrap-4.6.1-dist/css/bootstrap.css");{color}
>     }
> }
>  
> When the application runs after the changes, it still shows the default Bootstrap css (v4.3.1). 
> <link type="text/css" rel="stylesheet" href="[/Registration/assets/meta/zae851f6d/tapestry5/bootstrap4/css/bootstrap.css|https://auth.cicd.dev-eval.net/DTICRegistration/assets/meta/zae851f6d/tapestry5/bootstrap4/css/bootstrap.css]">
> /*!
>  * Bootstrap {color:#ff0000}v4.3.1{color} ([https://getbootstrap.com/])
>  * Copyright 2011-2019 The Bootstrap Authors
>  * Copyright 2011-2019 Twitter, Inc. * Licensed under MIT ([https://github.com/twbs/bootstrap/blob/master/LICENSE])
> */
> What may be missing or mistaken? Please advise.
>  
> Thank you!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)