article:renderField
This tag makes it possible for template developers to access
inline objects and specify style according to their types. The body of
the tag will be executed once for each inline object in a particular
field. The mime-type of the field must be 'application/xhtml+xml'. The
inline object will be made available as an attribute in either page,
request, session or application scope, as specified by the template
developer. The default is page scope. The type of the attribute will be
neo.xredsys.presentation.PresentationElement
Syntax
<article:renderField article="..."? articleId="..."? field="..."? fieldValue="..."? name="..."? output="..."? property="..."? source="..."? sourceId="..."? toScope="..."? var="..." varBody="..."?> ... </article:renderField>
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
.If both
article
andarticleId
attributes are used together, thenarticleId
takes precedence.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
.var
, mandatory, no runtime expressionsThe name of the attribute in which an inline item will be stored
varBody
, no runtime expressionsThe name of the attribute in which the body text of the inline item will be stored, if any.
field
The name of the article field. Either
field
orfieldValue
is required.fieldValue
The value of the article field. Either
field
orfieldValue
is required.toScope
, no runtime expressionsThe scope in which an inline item will be stored as an attribute
output
The value
html
orxml
.The value
html
causes the output of the markup in the field to be rendered as HTML compliant markup. For example,<br>
tags will not be closed. The valuexml
causes the output to be rendered as XML.<br>
tags will in this case be rendered with a closing tag:<br />
.The value
html
is the default.