| <?xml version="1.0" encoding="ISO-8859-1"?> |
| <!-- |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| --> |
| <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> |
| <taglib> |
| <tlib-version>1.0</tlib-version> |
| <jsp-version>1.2</jsp-version> |
| <short-name>$shortname</short-name> |
| <uri>$uri</uri> |
| <display-name>$displayname</display-name> |
| <description>$description</description> |
| |
| $baseContent |
| |
| <!-- Component Tags --> |
| #set ($componentList = ${model.getComponents()}) |
| #foreach( $component in $componentList ) |
| #if ($modelIds.contains($component.modelId) |
| && ($component.name)) |
| #if ($utils.getTagPrefix($component.name) == $shortname) |
| <tag> |
| <name>$utils.getTagName($component.name)</name> |
| <tag-class>$component.tagClass</tag-class> |
| #if ($component.bodyContent) |
| <body-content>$component.bodyContent</body-content> |
| #else |
| <body-content>JSP</body-content> |
| #end |
| <description><![CDATA[$component.longDescription]]></description> |
| |
| #set ($propertyList = ${component.propertyList}) |
| #foreach( $property in $propertyList ) |
| #if (!$property.isTagExcluded()) |
| <attribute> |
| <name>$property.name</name> |
| <required>$property.isRequired()</required> |
| <rtexprvalue>false</rtexprvalue> |
| <type>java.lang.String</type> |
| <description><![CDATA[$property.longDescription]]></description> |
| </attribute> |
| #end |
| #end |
| </tag> |
| #end |
| #end |
| #end |
| <!-- Converter tags --> |
| #set ($componentList = ${model.getConverters()}) |
| #foreach( $component in $componentList ) |
| #if ($modelIds.contains($component.modelId) |
| && ($component.name)) |
| #if ($utils.getTagPrefix($component.name) == $shortname) |
| <tag> |
| <name>$utils.getTagName($component.name)</name> |
| <tag-class>$component.tagClass</tag-class> |
| #if ($component.bodyContent) |
| <body-content>$component.bodyContent</body-content> |
| #else |
| <body-content>empty</body-content> |
| #end |
| <description><![CDATA[$component.longDescription]]></description> |
| |
| #set ($propertyList = ${component.propertyList}) |
| #foreach( $property in $propertyList ) |
| #if (!$property.isTagExcluded()) |
| <attribute> |
| <name>$property.name</name> |
| <required>$property.isRequired()</required> |
| <rtexprvalue>false</rtexprvalue> |
| <type>java.lang.String</type> |
| <description><![CDATA[$property.longDescription]]></description> |
| </attribute> |
| #end |
| #end |
| </tag> |
| #end |
| #end |
| #end |
| <!-- Validator tags --> |
| #set ($componentList = ${model.getValidators()}) |
| #foreach( $component in $componentList ) |
| #if ($modelIds.contains($component.modelId) |
| && ($component.name)) |
| #if ($utils.getTagPrefix($component.name) == $shortname) |
| <tag> |
| <name>$utils.getTagName($component.name)</name> |
| <tag-class>$component.tagClass</tag-class> |
| #if ($component.bodyContent) |
| <body-content>$component.bodyContent</body-content> |
| #else |
| <body-content>empty</body-content> |
| #end |
| <description><![CDATA[$component.longDescription]]></description> |
| |
| #set ($propertyList = ${component.propertyList}) |
| #foreach( $property in $propertyList ) |
| #if (!$property.isTagExcluded()) |
| <attribute> |
| <name>$property.name</name> |
| <required>$property.isRequired()</required> |
| <rtexprvalue>false</rtexprvalue> |
| <type>java.lang.String</type> |
| <description><![CDATA[$property.longDescription]]></description> |
| </attribute> |
| #end |
| #end |
| </tag> |
| #end |
| #end |
| #end |
| <!-- Single Tags --> |
| #set ($tagList = $model.getTags()) |
| #foreach( $tag in $tagList ) |
| #if ($modelIds.contains($tag.modelId)) |
| <tag> |
| <name>$utils.getTagName($tag.name)</name> |
| <tag-class>$tag.className</tag-class> |
| <body-content>$tag.bodyContent</body-content> |
| <description><![CDATA[$tag.longDescription]]></description> |
| #set ($attributeList = ${tag.attributeList}) |
| #foreach( $attribute in $attributeList ) |
| <attribute> |
| <name>$attribute.name</name> |
| <required>$attribute.isRequired()</required> |
| <rtexprvalue>$attribute.isRtexprvalue()</rtexprvalue> |
| #if ($attribute.className) |
| <type>$attribute.className</type> |
| #else |
| <type>java.lang.String</type> |
| #end |
| <description><![CDATA[$attribute.longDescription]]></description> |
| </attribute> |
| #end |
| </tag> |
| #end |
| #end |
| </taglib> |