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

META-INF.tld.tiles-jsp.tld Maven / Gradle / Ivy

Go to download

Tiles JSP support: Classes and tag libraries to use Tiles in a JSP environment.

The newest version!




   
   
   
   1.2
   tiles
   http://tiles.apache.org/tags-tiles
   
      
      
      Insert a definition.
      

Insert a definition with the possibility to override and specify parameters (called attributes). A definition can be seen as a (partially or totally) filled template that can override or complete attribute values. <tiles:insertDefinition> allows to define these attributes and pass them to the inserted jsp page, called template. Attributes are defined using nested tag <tiles:putAttribute> or <tiles:putListAttribute>.

You must specify name tag attribute, for inserting a definition from definitions factory.

Example :

      <code>
                <tiles:insertDefinition name=".my.tiles.defininition flush="true">
                   <tiles:putAttribute name="title" value="My first page" />
                   <tiles:putAttribute name="header" value="/common/header.jsp" />
                   <tiles:putAttribute name="footer" value="/common/footer.jsp" />
                   <tiles:putAttribute name="menu" value="/basic/menu.jsp" />
                   <tiles:putAttribute name="body" value="/basic/helloBody.jsp" />
                </tiles:insertDefinition>
              </code>
      
]]>
insertDefinition org.apache.tiles.jsp.taglib.InsertDefinitionTag scriptless name true true java.lang.String template false true java.lang.String templateType false true java.lang.String templateExpression false true java.lang.String role false true java.lang.String preparer false true java.lang.String true
, the response will be flushed after the insert. ]]> flush false true boolean 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.

]]>
importAttribute org.apache.tiles.jsp.taglib.ImportAttributeTag empty null, all the attributes will be imported. ]]> name false true java.lang.String null, the import will go in page scope. ]]> scope false true java.lang.String name. If null, the value of name will be used. ]]> toName false true java.lang.String true, if the attribute is not present, the problem will be ignored. ]]> ignore false true boolean
setCurrentContainer org.apache.tiles.jsp.taglib.SetCurrentContainerTag empty null, the default one will be used. ]]> containerKey false true java.lang.String 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.

]]>
addListAttribute org.apache.tiles.jsp.taglib.AddListAttributeTag scriptless role false true java.lang.String
Render the value of the specified template attribute to the current Writer

Retrieve the value of the specified template attribute property, and render it to the current Writer as a String. The usual toString() conversions is applied on found value.

]]>
getAsString org.apache.tiles.jsp.taglib.GetAsStringTag scriptless true, if an exception happens during rendering, of if the attribute is null, the problem will be ignored. ]]> ignore false true boolean preparer false true java.lang.String role false true java.lang.String defaultValue false true java.lang.Object defaultValueRole false true java.lang.String defaultValueType false true java.lang.String name true true java.lang.String value false true org.apache.tiles.Attribute
Inserts the value of an attribute into the page.

This tag can be flexibly used to insert the value of an attribute into a page. As in other usages in Tiles, every attribute can be determined to have a "type", either set explicitly when it was defined, or "computed". If the type is not explicit, then if the attribute value is a valid definition, it will be inserted as such. Otherwise, if it begins with a "/" character, it will be treated as a "template". Finally, if it has not otherwise been assigned a type, it will be treated as a String and included without any special handling.

Example :

      <code>
                <tiles:insertAttribute name="body" />
              </code>
      
]]>
insertAttribute org.apache.tiles.jsp.taglib.InsertAttributeTag scriptless true, if an exception happens during rendering, of if the attribute is null, the problem will be ignored. ]]> ignore false true boolean preparer false true java.lang.String role false true java.lang.String defaultValue false true java.lang.Object defaultValueRole false true java.lang.String defaultValueType false true java.lang.String name false true java.lang.String value false true org.apache.tiles.Attribute true, the response will be flushed after the insert. ]]> flush false true boolean
Put an attribute in enclosing attribute container tag.

Enclosing attribute container tag can be :

  • <initContainer>
  • <definition>
  • <insertAttribute>
  • <insertDefinition>
  • <putListAttribute>
(or any other tag which implements the PutAttributeTagParent interface. Exception is thrown if no appropriate tag can be found.

Put tag can have following atributes :

  • name : Name of the attribute
  • value : value to put as attribute
  • type : value type. Possible type are : string (value is used as direct string), template (value is used as a page url to insert), definition (value is used as a definition name to insert), object (value is used as it is)
  • role : Role to check when 'insertAttribute' will be called.

Value can also come from tag body. Tag body is taken into account only if value is not set by one of the tag attributes. In this case Attribute type is "string", unless tag body define another type.

]]>
putAttribute org.apache.tiles.jsp.taglib.PutAttributeTag scriptless name true true java.lang.String value false true java.lang.Object expression false true java.lang.String role false true java.lang.String type false true java.lang.String true the attribute will be cascaded to all nested attributes. ]]> cascade false true boolean
Create a definition at runtime.

Create a new definition at runtime. Newly created definition will be available across the entire request.

]]>
definition org.apache.tiles.jsp.taglib.DefinitionTag scriptless name false true java.lang.String template false true java.lang.String role false true java.lang.String extends false true java.lang.String preparer false true java.lang.String
Add an element to the surrounding list. Equivalent to 'putAttribute', but for list element.

Add an element to the surrounding list. This tag can only be used inside 'putListAttribute' or 'addListAttribute' tags. Value can come from a direct assignment (value="aValue")

]]>
addAttribute org.apache.tiles.jsp.taglib.AddAttributeTag scriptless value false true java.lang.Object expression false true java.lang.String role false true java.lang.String type false true java.lang.String
Declare a list that will be pass as attribute to tile.

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

]]>
putListAttribute org.apache.tiles.jsp.taglib.PutListAttributeTag scriptless name true true java.lang.String role false true java.lang.String true, the list attribute will use, as first elements, the list contained in the list attribute, put with the same name, of the containing definition. ]]> inherit false true boolean true the attribute will be cascaded to all nested attributes. ]]> cascade false true boolean
Insert a template.

Insert a template with the possibility to pass parameters (called attributes). A template can be seen as a procedure that can take parameters or attributes. <tiles:insertTemplate> allows to define these attributes and pass them to the inserted jsp page, called template. Attributes are defined using nested tag <tiles:putAttribute> or <tiles:putListAttribute>.

You must specify template attribute, for inserting a template

Example :

      <code>
                <tiles:insertTemplate template="/basic/myLayout.jsp" flush="true">
                   <tiles:putAttribute name="title" value="My first page" />
                   <tiles:putAttribute name="header" value="/common/header.jsp" />
                   <tiles:putAttribute name="footer" value="/common/footer.jsp" />
                   <tiles:putAttribute name="menu" value="/basic/menu.jsp" />
                   <tiles:putAttribute name="body" value="/basic/helloBody.jsp" />
                </tiles:insertTemplate>
              </code>
      
]]>
insertTemplate org.apache.tiles.jsp.taglib.InsertTemplateTag scriptless template true true java.lang.String templateType false true java.lang.String templateExpression false true java.lang.String role false true java.lang.String preparer false true java.lang.String true, the response will be flushed after the insert. ]]> flush false true boolean




© 2015 - 2024 Weber Informatics LLC | Privacy Policy