Server

WebEngine Tutorials

Updated: March 18, 2024

In this section we will go deeper into WebEngine model by proposing 5 samples on how to use common WebEngine concepts.

To install the sample modules you need to download the compiled JAR from our Maven repository and copy them to the $NUXEO_HOME/nxserver/bundles directory.

To correctly understand the tutorials you need to look into all .groovy, .xml, and .ftl files you find in the corresponding sample modules.

Tutorial 1 - Hello World.

This tutorial demonstrates how to handle requests. This is the simplest object. It requires only one java class which represents the Resource (the entry point).

You can access the tutorial sample at: http://localhost:8080/nuxeo/site/samples/hello

Tutorial 2 - Using Templates

This tutorial demonstrates how to use templates to render dynamic content.

You can access the tutorial sample at: http://localhost:8080/nuxeo/site/samples/templating

Tutorial 3 - Web Object Model

This tutorial demonstrates the basics of the WebEngine Object Model. You can see how to create new Module Resources, Object Resources, Adapter Resources and views.

You can access the tutorial sample at: http://localhost:8080/nuxeo/site/samples/basics

Tutorial 4 - Working with Documents

This tutorial demonstrates how to access Nuxeo Platform Documents through WebEngine. You can access the tutorial sample at: http://localhost:8080/nuxeo/site/samples/documents

Tutorial 5 - Module Extensibility

This tutorial demonstrates how modules can be extended and how the links you are using in your templates can be managed to create easy to maintain and modular applications.

You can access the tutorial sample at: http://localhost:8080/nuxeo/site/samples/extended