nxl
Tag documentLayout
Facelet tag handler that renders all layouts attached to a document in a given mode.
Layouts are built using the document type definition. This tag is equivalent to rendering each layout in given mode, using document as value.
Any additional property set on the tag and that is not explicitely in the list of handled attributes is added to each of the layouts properties, overriding properties that already set in the layout definitions.
Example:
<nxl:documentLayout mode="#{myMode}" value="#{myDocument}" />
Tag Information |
Tag Class | None |
TagExtraInfo Class | None |
Body Content | None |
Display Name | None |
Attributes |
Name | Required | Request-time | Type | Description |
mode | true | false | java.lang.String | Mode in which layouts must be taken on the document definition, as well as rendered if attribute "documentMode" is not defined. |
documentMode | false | false | java.lang.String | Mode in which layouts must be taken on the document definition, if defined (otherwise, will use the "mode" attribute value). |
value | true | false | org.nuxeo.ecm.core.api.DocumentModel | The document for which layouts will be built and rendered. |
template | false | false | java.lang.String | The template to use for layouts, overriding each of the templates declared in the layouts definitions. |
defaultLayout | false | false | java.lang.String | The default layout to be rendered if no layout is found on the document definition. Available since 5.4.2. |
includeAnyMode | false | false | java.lang.Boolean | Boolean indicating if layouts declared in the 'any' mode on the document definition should be used if no layout is found for the wanted mode. Defaults to true. Available since 5.4.2. |
Variables |
No Variables Defined. |
Output Generated by
Tag Library Documentation Generator.
Java, JSP, and JavaServer Pages are trademarks or
registered trademarks of Sun Microsystems, Inc. in the US and other
countries. Copyright 2002-4 Sun Microsystems, Inc.
4150 Network Circle
Santa Clara, CA 95054, U.S.A.
All Rights Reserved.