Provides a custom "options" syntax for attributes.
The first option that can be rendered is.
Comes from The Ultimate View
Actual rendering is delegated to the TypeDetectingRenderer that's supplied in the constructor.
given the myptions list-attribute is defined like:
will look for content.jsp
first in "/WEB-INF/tiles/fragments/car/" then
second in "/WEB-INF/tiles/fragments/vechile/" and
last in "/WEB-INF/tiles/fragments/advert".
Currently only supports one occurrance of such an "option" pattern in the attribute's value.
Limitation: "looking" for templates is implemented using applicationContext.getResource(..)
therefore the option values in the options list need to be visible as applicationResources.
The attribute found and rendered is cached so to improve performance on subsequent lookups.
The default cache time-to-live is 300000L
, specified by
It can be customised by setting the system property , see
Setting it to zero will disable the cache.