article:use
Sets the current article for the body of this tag. All article tags that use the current article in the body of this tag will use the article specified here rather than the current article set outside this tag.
All the other tags in this library expect a current article to be set (although some allow you to optionally specify the article to operate on).
To specify the new current article you must set one of the following attributes or attribute combinations:
-
article
-
articleId
-
name
-
name
andproperty
-
source
andsourceId
Syntax
<article:use article="..."? articleId="..."? name="..."? property="..."? source="..."? sourceId="..."?> ... </article:use>
Attributes
article
The article to be set as current article in the body of this tag. 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
An article id identifying the article to be set as current article in the body of this tag. 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 that will be used as current article in the body of this tag.
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 that will be used as current article in the body of this tag. If name is specified but this attribute is not specified, then the bean identified by thename
attribute will be used as current article.This attribute cannot be used without the
name
attribute.source
The source of an article to be used as current article in the body of this tag. 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 to be used as current article in the body of this tag. This attribute must be used together with
source
.Using this attribute excludes the use of the attributes
article
,articleId
andname/property
.