Skip to content

Commit

Permalink
TheCoder4eu/BootsFaces-OSP#853 adding a live demo (part 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanrauh committed Oct 8, 2018
1 parent e60898e commit 55e6e40
Show file tree
Hide file tree
Showing 10 changed files with 202 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/main/java/net/bootsfaces/demo/DataTableSettingsBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -493,13 +493,11 @@ public void setMarkSearchResults(boolean markSearchResult) {
}

public boolean isUseCDN() {
System.out.println("using CDN:" + useCDN);
return useCDN;
}

public void setUseCDN(boolean useCDN) {
this.useCDN = useCDN;
System.out.println("Setting useCDN = " + useCDN);
}

public String reload() {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion src/main/webapp/layout/resourcemanagement.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
</b:listLinks>
</ui:define>


<ui:define name="custom-header">
<h:outputStylesheet library="datatables.net" name="datatables.min.css" rendered="#{dataTableSettingsBean.useSlimFiles}" />
<h:outputScript library="datatables.net" name="datatables.min.js" target="head" rendered="#{dataTableSettingsBean.useSlimFiles}" />
</ui:define>

<ui:define name="content">
<h1><a id="dealing_with_resource_files">Dealing with resource files</a><b:badge value="improved in 0.8.0" /></h1>
<p>The BootsFaces jar contains many CSS and JavaScript files. You don't need external resource files to use BootsFaces. However,
Expand Down Expand Up @@ -128,6 +132,7 @@
without Excel export, or you could provide a full-blown copy containing every feature the
DataTables.net has implemented.</p>
<b:selectBooleanCheckbox value="#{dataTableSettingsBean.useCDN}" caption="Use default files from a CDN" />
<b:selectBooleanCheckbox value="#{dataTableSettingsBean.useSlimFiles}" caption="Use custom files without Excel download" />
<b:commandButton value="Update and reload page" action="#{dataTableSettingsBean.reload}"
onComplete="scrollToAnchor()"/>
</b:column>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions src/main/webapp/resources/datatables.net/datatables.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 55e6e40

Please sign in to comment.