public class ImportAttributeModel extends Object
Import attribute(s) in specified context.
Import attribute(s) to requested scope. Attribute name and scope are optional. If not specified, all attributes are imported in page scope. Once imported, an attribute can be used as any other beans from jsp contexts.
Constructor and Description |
---|
ImportAttributeModel() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getImportedAttributes(TilesContainer container,
String name,
String toName,
boolean ignore,
Object... requestItems)
Retuns a Map that contains the attributes to be imported.
|
public Map<String,Object> getImportedAttributes(TilesContainer container, String name, String toName, boolean ignore, Object... requestItems)
container
- The Tiles container to use.name
- The attribute to import. If null, all the attributes will be
imported.toName
- The destination name of the attribute to import. Valid only
if name
is specified.ignore
- If true
and the attribute is not found, or an
exception happens, the problem will be ignored.requestItems
- The request objects.Copyright © 2017. All rights reserved.