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 and property

  • source and sourceId

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 and property

  • source and sourceId

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 a neo.xredsys.presentation.PresentationArticle bean.

Using this attribute excludes the use of the attributes articleId, name/property and source/sourceId.

articleId

The value supplied can be an int, Integer or String.

Using articleId excludes the use of the attributes article, name/property and source/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 and source/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 the name 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 and name/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 and name/property.