META-INF.cpnl.tld Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of composum-nodes-commons Show documentation
Show all versions of composum-nodes-commons Show documentation
general components and objects to use the Sling API
a collection of universal Sling related tags
1.0
cpnl
http://sling.composum.com/cpnl/1.0
the extended define objects tag
defineObjects
com.composum.sling.cpnl.DefineObjectsTag
com.composum.sling.cpnl.DefineObjectsTagTEI
empty
the tag to declare a resource bundle (I18N)
bundle
com.composum.sling.cpnl.BundleTag
JSP
basename
true
true
java.lang.String
Creates a component model from a given className. If it's a com.composum.sling.core.SlingBean, initialization is supported;
if it's a com.composum.sling.core.bean.SlingBeanFactory annotated with com.composum.sling.core.bean.BeanFactory,
the corresponding service is used to create it.
component
com.composum.sling.cpnl.ComponentTag
com.composum.sling.cpnl.ComponentTagTEI
JSP
deprecated: use 'var' instead of 'id'
id
false
true
java.lang.String
The variable name where the created component model is stored. One of 'var' or 'id' must be declared
var
false
true
java.lang.String
type
false
true
java.lang.String
scope
false
true
java.lang.String
replace
false
true
java.lang.Boolean
path
false
true
java.lang.String
resource
false
true
org.apache.sling.api.resource.Resource
If set (default true) and if the component is java.lang.AutoCloseable, it's close method is called when the tag rendering is finished.
In that case, you might need to be careful not to use the component outside of the tag.
close
false
false
java.lang.Boolean
Includes a clientlib reference (JS, CSS etc).
Client libraries are folders of sling:resourceType composum/nodes/commons/clientlib containing
subfolders for each type, and declare dependencies to other client libraries. The tag can reference
multiple client libraries if they are referenced by category, and if the client library/-ies have dependencies
to other client libraries / resources. Thus, the tag can render as several link / script / img tags.
clientlib
com.composum.sling.cpnl.ClientlibTag
JSP
Path to the client library - folder of sling:resourceType composum/nodes/commons/clientlib. One of path or category is required.
path
false
true
java.lang.String
Category of client libraries to be included. One of path or category is required.
category
false
true
java.lang.String
Type of rendered resources: css, js, link, img, png, jpg. Default: link.
type
false
true
java.lang.String
An optional boolean (JSP-EL) expression for a conditional clientlib link.
test
false
true
java.lang.Object
Generates a 'div' ans support the 'test' condition
div
com.composum.sling.cpnl.DivTag
JSP
tagName
false
true
java.lang.String
test
false
true
java.lang.Object
body
false
true
java.lang.Object
true
Generates image elements with mapped source URLs
image
com.composum.sling.cpnl.ImageTag
JSP
src
true
true
java.lang.String
tagName
false
true
java.lang.String
urlAttr
false
true
java.lang.String
map
false
true
java.lang.Boolean
format
false
true
java.lang.String
title
false
true
java.lang.String
alt
false
true
java.lang.String
role
false
true
java.lang.String
deprecated: use 'class' like a normal HTML tag
classes
false
true
java.lang.String
test
false
true
java.lang.Object
true
Generates link elements with mapped URLs
link
com.composum.sling.cpnl.LinkTag
JSP
href
true
true
java.lang.String
tagName
false
true
java.lang.String
urlAttr
false
true
java.lang.String
target
false
true
java.lang.String
map
false
true
java.lang.Boolean
The format to set to build a url from the 'url' value: e.g. {} or {0} is replaced by the url.
format
false
true
java.lang.String
role
false
true
java.lang.String
deprecated: use 'class' like a normal HTML tag
classes
false
true
java.lang.String
test
false
true
java.lang.Object
body
false
true
java.lang.Object
true
Embeds an anchor link tag
anchor
com.composum.sling.cpnl.AnchorTag
JSP
the identifier of the anchor link tag to set
name
true
true
java.lang.String
deprecated: use 'class' like a normal HTML tag
classes
false
true
java.lang.String
an EL expression that determines whether the tag is shown
test
false
true
java.lang.Object
true
Generates form elements with mapped action URLs
form
com.composum.sling.cpnl.FormTag
JSP
action
true
true
java.lang.String
role
false
true
java.lang.String
deprecated: use 'class' like a normal HTML tag
classes
false
true
java.lang.String
charset
false
true
java.lang.String
enctype
false
true
java.lang.String
method
false
true
java.lang.String
test
false
true
java.lang.Object
true
Generates a bootstrap table element with mapped AJAX URLs
table
com.composum.sling.cpnl.TableTag
JSP
path
true
true
java.lang.String
role
false
true
java.lang.String
deprecated: use 'class' like a normal HTML tag
classes
false
true
java.lang.String
toolbar
false
true
java.lang.String
test
false
true
java.lang.Object
true
renders text values with optional tag and class, formatting and with escaping (XSS prevention)
text
com.composum.sling.cpnl.TextTag
JSP
type
false
true
java.lang.String
value
false
true
java.lang.Object
property
false
true
java.lang.String
escape
false
true
java.lang.Boolean
i18n
false
true
java.lang.Boolean
format
false
true
java.lang.String
locale
false
true
java.util.Locale
tagName
false
true
java.lang.String
deprecated: use 'class' like a normal HTML tag
classes
false
true
java.lang.String
test
false
true
java.lang.Object
true
retrieves the translation for a string
i18n
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String i18n(org.apache.sling.api.SlingHttpServletRequest,java.lang.String)
returns the absolute path for a child of a resource
child
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String child(org.apache.sling.api.resource.Resource,java.lang.String)
Builds the URL for a repository asset path using the LinkUtil.getURL() method
asset
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String asset(org.apache.sling.api.SlingHttpServletRequest,java.lang.String)
Builds the URL for a repository path using the LinkUtil.getURL() method
url
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String url(org.apache.sling.api.SlingHttpServletRequest,java.lang.String)
Builds the URL for a repository path using the LinkUtil.getMappedURL() method
mappedUrl
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String unmappedUrl(org.apache.sling.api.SlingHttpServletRequest,java.lang.String)
Builds the URL for a repository path using the LinkUtil.getUNappedURL() method
unmappedUrl
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String unmappedUrl(org.apache.sling.api.SlingHttpServletRequest,java.lang.String)
Builds the URL for a repository path using the LinkUtil.getURL() method
externalUrl
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String externalUrl(org.apache.sling.api.SlingHttpServletRequest,java.lang.String)
Builds the URL for a repository path using the LinkUtil.getMappedURL() method
mappedExternalUrl
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String unmappedExternalUrl(org.apache.sling.api.SlingHttpServletRequest,java.lang.String)
Builds the URL for a repository path using the LinkUtil.getUNappedURL() method
unmappedExternalUrl
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String unmappedExternalUrl(org.apache.sling.api.SlingHttpServletRequest,java.lang.String)
transforms a string value for rendering (does nothing)
value
com.composum.sling.cpnl.CpnlElFunctions
java.lang.Object value(java.lang.Object)
transforms a string value for HTML text rendering
text
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String text(java.lang.String)
transforms text of a rich text value as html for a tag attribute (encodes quotes)
attr
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String attr(org.apache.sling.api.SlingHttpServletRequest,java.lang.String,int)
transforms a string value for rich text (HTML) rendering
rich
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String rich(org.apache.sling.api.SlingHttpServletRequest,java.lang.String)
prevents the given value string from containing XSS stuff
filter
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String filter(java.lang.String)
prevents the given value string from containing XSS stuff
context
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String context(java.lang.String,java.lang.String)
builds the URI for a relative Composum URI (prepends the Composum base)
cpm
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String cpm(java.lang.String)
transforms a string value for URL path rendering
path
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String path(java.lang.String)
transforms a string value for script rendering
script
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String script(java.lang.String)
transforms a string value for style rendering
style
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String style(java.lang.String)
encapsulates a text with CDATA
cdata
com.composum.sling.cpnl.CpnlElFunctions
java.lang.String cdata(java.lang.String)
checks whether an array of objects or collection contains an object
contains
com.composum.sling.cpnl.CpnlElFunctions
java.lang.Boolean contains(java.lang.Object, java.lang.Object)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy