The table below describes every samples of the WUIC project. Each sample is a module defined in 'samples'. Samples are not hosted in maven central. To use them, simply download the project's archive on github, move into the desired sample module and just run:
mvn jetty:run-forked
Jetty 9 starts and listen port 9090 with the HTTP/2 connector. Check the parent's pom.xml to see the right JDK 8 version to use. The port 8080 will be also listened with the HTTP/1.1 connector.
Alternatively, you can run:
mvn jetty:run -Pjetty8
Jetty 8 starts and listen port 8080 with the HTTP/1.1 connector. JDK 6 is required.
You can also deploy the sample with Undertow
thanks to the wildfly-swarm
maven plugin:
mvn -Pwildfly-swarm wildfly-swarm:run
Some samples are currently available on the 'SNAPSHOT' branch. However, you can use them until they will be released. All samples apply optimizations provided by core module:
Name | Description | Additional feature(s) | bootstrap3-sample | This sample embeds the bootstrap3 samples and applies the Servlet filter provided by WUIC. | YuiCompressor Javascript & CSS minification |
HTML filter | ||
Server-side caching with EhCache | HTML compressor support | |
js-css-sample | The webapp embeds the JQuery UI archive. All the demos have been copied into the '/using-wuic' path to show how to integrate them with WUIC. This way, you can see how you can embed uncompressed framework resources and configure a 'production' mode using WUIC. Think how it would be useful to disable compression to debug when your application raises an error in a compressed script! NOTE : work in progress! Already integrated the different 'accordion', 'addClass', 'animate', 'autocomplete', 'button', 'datepicker' demos. You can also see how the servlet filter works under the path '/jquery-ui-1.10.2/filter'. | YuiCompressor Javascript & CSS minification |
HTML filter | ||
JSP Tag | ||
Server-side caching with Hazelcast | HTML compressor support | |
js-sprite-sample | The sample includes the cgSceneGraph framework. It demonstrates how to include a set of images aggregated and loaded with sprite in Javascript. The demo just displays the different images using sprites. | Google Closure compiler (requires Java 7+) & CSS minification |
HTML filter | ||
Server-side caching with EhCache | ||
Image aggregation with javascript sprite generation | ||
JSP tag | ||
css-sprite-sample | Demonstrates how to include a set of images aggregated and loaded with sprite in CSS. The demo just displays a set of different flags loaded from a single image . | YuiCompressor Javascript & CSS minification |
HTML filter | ||
Server-side caching with EhCache | ||
Image aggregation with CSS sprite generation | ||
JSP tag | ||
thymeleaf-sample | With a modified demo from datatable project, this samples shows how you can use the thymeleaf dialect and its import processor. | Thymeleaf support |
polling-sample | Demonstrates how WUIC can poll both configuration files and nuts and refresh them at runtime. | YuiCompressor Javascript & CSS minification |
Configuration polling | ||
Nut polling | ||
build-time-sample | This sample shows how you can process nuts with WUIC when you build your project with maven and not on the fly. The application is based on a demo from the famous Sir Trevor project. | Plugin 'static-helper-maven-plugin' for maven. |
spring-sample | Spring 4.1 offers web resources managements and could be integrated with WUIC as demonstrated by this sample. The view also relies on thymeleaf support. | YuiCompressor Javascript & CSS minification |
Spring assets pipeline integration | ||
Thymeleaf integration with spring | ||
typescript-sample | Typescript must be compiled into javascript to be interpreted by the browser. This sample demonstrates how WUIC does it transparently. | Typescript4j based extension |
Cross-platform support (rhino) | ||
Node.JS support | ||
js-html-sample | Command line can be executed to process statics. This example shows how browserify, exorcist and ulglify are executed by WUIC in a NodeJS environment. | frontend-maven-plugin based extension |
ReactJS transformation | ||
Node.JS support |