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:
- Aggregation
- Client-side caching
- Server-side caching
- Servlet serving process results
- Rewrite CSS URL
- Rewrite Sourcemap URL
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.
|