article Tag Library
This library contains tags that operate on
PresentationArticle
beans.
All the tags in this library operate on the current context's
default article (content item), except use
and
list
. In these cases you can specify the article
to operate on using one of the following attributes or attribute
combinations:
-
article
-
articleId
-
name
-
name
andproperty
-
source
andsourceId
In order to use any article tags in a JSP file you must include the following prefix declaration in the file:
<%@ taglib uri="http://www.escenic.com/taglib/escenic-article" prefix="article" %>
article
is the prefix normally used for
this tag library.
Common Attributes
To specify an article you must set one of the following attributes or attribute combinations:
-
article
-
articleId
-
name
-
name
andproperty
-
source
andsourceId
If one of these attributes or attribute combinations is specified, then the current article is ignored.
article
The supplied bean must either be a
neo.xredsys.api.Article
or aneo.xredsys.presentation.PresentationArticle
bean.Using this attribute excludes the use of the attributes
articleId
,name/property
andsource/sourceId
.articleId
The value supplied can be an
int
,Integer
orString
.Using
articleId
excludes the use of the attributesarticle
,name/property
andsource/sourceId
.name
The name (key) of a bean that is to be used to locate an article. There are two ways of using this bean:
Using this attribute excludes the use of the attributes
article
,articleId
andsource/sourceId
.property
The name of a bean property. This attribute is used together with the
name
attribute to locate an article. If name is specified but this attribute is not specified, then the bean identified by thename
attribute will be used.This attribute cannot be used without the
name
attribute.source
The source of an article. This attribute must be used together with
sourceId
.Using this attribute excludes the use of the attributes
article
,articleId
andname/property
.sourceId
The source ID of an article. This attribute must be used together with
source
.Using this attribute excludes the use of the attributes
article
,articleId
andname/property
.