Parameterized Namespace Granite Include

Available since version 4.5.0


The parameterized namespace include (acs-commons/granite/ui/components/include) can include dialog snippets with a namespace and or parameters.

The namespace mechanism is similar to the following following deprecated feature.

This allows you to reuse a dialog snippet multiple times in a dialog.

The parameters mechanism allows you to define parameters in your dialog snippets in the values. For example the fieldLabel. You can define a default value, but override the default value when including the snippet.


  • Namespacing: Simple but full example for demonstrating the namespacing with a dialog, Sling Model and HTL

  • Parameters: Example of parameters used to include a snippet


The namespaced properties can be configured using the OSGI configuration. This allows you define extra properties to be automatically namespaced. By default the values are name, fileNameParameter and fileReferenceParameter.

So if we need to have ‘myCustomProperty’ namespaced:


<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="" xmlns:jcr=""
Please report any issues with the Feature or documentation on the ACS AEM Commons GitHub Issue tracker.