public class DefinitionModel
extends java.lang.Object
Create a definition at runtime.
Create a new definition at runtime. Newly created definition will be available across the entire request.
Constructor | Description |
---|---|
DefinitionModel() |
Modifier and Type | Method | Description |
---|---|---|
void |
execute(java.lang.String name,
java.lang.String template,
java.lang.String role,
java.lang.String extendsParam,
java.lang.String preparer,
org.apache.tiles.request.Request request,
org.apache.tiles.autotag.core.runtime.ModelBody modelBody) |
Executes the operation.
|
public void execute(java.lang.String name, java.lang.String template, java.lang.String role, java.lang.String extendsParam, java.lang.String preparer, org.apache.tiles.request.Request request, org.apache.tiles.autotag.core.runtime.ModelBody modelBody) throws java.io.IOException
name
- The name of the definition to create. If not specified, an
anonymous definition will be created.template
- The template of this definition.role
- A comma-separated list of roles. If present, the definition
will be rendered only if the current user belongs to one of the roles.extendsParam
- The definition name that this definition extends.preparer
- The preparer to use to invoke before the definition is
rendered.request
- The request.modelBody
- The body.java.io.IOException
- If something goes wrong.Copyright © 2018. All rights reserved.