Registering a new Tag Library

When registering a new tag library, you would usually declare the facelets taglib file in the web.xml configuration file. As this parameter can only be declared once, and is already declared in the nuxeo base ui module, you cannot declare it using the Nuxeo deployment feature.

A workaround is to put you custom taglib file "mylibary.taglib.xml" in the META-INF folder of your custom jar: it will be registered automatically (even if it triggers an error log at startup). As a reminder, the tag library documentation file, mylibrary.tld, is usually placed in the same folder than the taglib file, but it is only used for documentation: it plays no role in the tags registration in the application.

Version 1.2 last modified by Florent Guillaume on 10/02/2010 at 12:46

Comments 0

No comments for this document

Attachments 0

No attachments for this document

Creator: Anahide Tchertchian on 2008/06/26 11:54
© 2008-2010 Nuxeo
1.3.8295