-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
themes and resource handling #349
Comments
Update: improved with 58a8e22 |
de.agilecoders.wicket.themes.markup.html.bootstrap.Bootstrap3Theme issues:
Update: fixed with e67a05b |
It would be nice to get advantage of the new functionality provided by https://issues.apache.org/jira/browse/WICKET-5617 At the moment I have this local patch in wicket-7.0.0-M1 branch: --- i/bootstrap-themes/src/main/java/de/agilecoders/wicket/themes/markup/html/bootswatch/BootswatchTheme.java
+++ w/bootstrap-themes/src/main/java/de/agilecoders/wicket/themes/markup/html/bootswatch/BootswatchTheme.java
@@ -51,10 +51,12 @@ public enum BootswatchTheme implements ITheme {
if (cdnUrl == null) {
cdnUrl = String.format(CDN_PATTERN, getVersion(), name().toLowerCase());
}
- response.render(CssHeaderItem.forReference(new UrlResourceReference(Url.parse(cdnUrl))));
+ CssHeaderItem item = CssHeaderItem.forReference(new UrlResourceReference(Url.parse(cdnUrl)),
+ null, null, null).setId("wb-theme");
+ response.render(item);
}
else {
- response.render(CssHeaderItem.forReference(reference));
+ response.render(CssHeaderItem.forReference(reference).setId("wb-theme"));
} But I face the following problems:
Update: Improved with 76c8d36 in wicket-7.0.0-M1 branch (the living branch against Wicket 7.0.0-SNAPSHOT). |
Simplifies DefaultThemeProvider#defaultTheme() methods
Set markup id to the Theme's CSS resource reference
Set markup id to the Theme's CSS resource reference
we've to improve the theme and resource handling because it leads to some strange behavior.
see also: #347, #345, #344
The text was updated successfully, but these errors were encountered: