All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.tiles.jsp.taglib.AddListAttributeTag Maven / Gradle / Ivy

/*
 * This file was automatically generated by Apache Tiles Autotag.
 */
package org.apache.tiles.jsp.taglib;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;

import org.apache.tiles.autotag.core.runtime.ModelBody;
import org.apache.tiles.autotag.core.runtime.AutotagRuntime;

/**
 * 

* Declare a list that will be pass as an attribute. *

*

* Declare a list that will be pass as an attribute . List elements are added * using the tag 'addAttribute' or 'addListAttribute'. This tag can only be used * inside 'insertTemplate', 'insertDefinition' or 'definition' tag. *

*/ public class AddListAttributeTag extends SimpleTagSupport { /** * The template model. */ private org.apache.tiles.template.AddListAttributeModel model = new org.apache.tiles.template.AddListAttributeModel(); /** * The comma-separated list of roles that can use the list attribute. */ private java.lang.String role; /** * Getter for role property. * * @return * The comma-separated list of roles that can use the list attribute. */ public java.lang.String getRole() { return role; } /** * Setter for role property. * * @param role * The comma-separated list of roles that can use the list attribute. */ public void setRole(java.lang.String role) { this.role = role; } /** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( role, request, modelBody ); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy