| uk.org.ponder.rsf.templateresolver.TemplateResolverStrategy
All known Subclasses: uk.org.ponder.rsf.templateresolver.CRITemplateResolverStrategy,
TemplateResolverStrategy | public interface TemplateResolverStrategy (Code) | | Resolves an incoming set of ViewParameters onto a list of template path names
(minus extension) to be searched for an appropriate template file.
Use of this interface implies the use of templates from webapp-local
storage, as in general served by the DefaultServlet. For more finegrained
control over template location and mapping, use the
BaseAwareTemplateResolverStrategy .
author: Antranig Basman (antranig@caret.cam.ac.uk) |
Method Summary | |
public boolean | isStatic() Determines whether this resolver strategy is "static" - that is, whether
it returns results which are not specific to the current view. | public StringList | resolveTemplatePath(ViewParameters viewparams) Parameters: viewparams - The view parameters for the view being rendered. |
isStatic | public boolean isStatic()(Code) | | Determines whether this resolver strategy is "static" - that is, whether
it returns results which are not specific to the current view. The primary
usage of this return is to determine whether to import *all* branch
IDs into global resolution, or just branch IDs which occur at top level
in the returned templates.
false if this resolver returns templates which are view-specific |
resolveTemplatePath | public StringList resolveTemplatePath(ViewParameters viewparams)(Code) | | Parameters: viewparams - The view parameters for the view being rendered. A (modifiable) list of resource names (as supplied to some kind ofInputStreamSource) MINUS extension, that will be searched, INORDER, for a view template to be used for the current view. Theseare *relative* paths from the context root of the webapp, omittingthe leading slash. |
|
|