You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by mr...@apache.org on 2007/01/07 06:07:44 UTC
svn commit: r493646 - in /struts/maven/trunk/struts-annotations/src/main:
java/org/apache/struts/annotations/taglib/apt/ resources/ resources/org/
resources/org/apache/ resources/org/apache/struts/
resources/org/apache/struts/annotations/ resources/org...
Author: mrdon
Date: Sat Jan 6 21:07:43 2007
New Revision: 493646
URL: http://svn.apache.org/viewvc?view=rev&rev=493646
Log:
Adding tag template, added tag type to output
WW-1392
Added:
struts/maven/trunk/struts-annotations/src/main/resources/
struts/maven/trunk/struts-annotations/src/main/resources/org/
struts/maven/trunk/struts-annotations/src/main/resources/org/apache/
struts/maven/trunk/struts-annotations/src/main/resources/org/apache/struts/
struts/maven/trunk/struts-annotations/src/main/resources/org/apache/struts/annotations/
struts/maven/trunk/struts-annotations/src/main/resources/org/apache/struts/annotations/taglib/
struts/maven/trunk/struts-annotations/src/main/resources/org/apache/struts/annotations/taglib/apt/
struts/maven/trunk/struts-annotations/src/main/resources/org/apache/struts/annotations/taglib/apt/tag.ftl
Modified:
struts/maven/trunk/struts-annotations/src/main/java/org/apache/struts/annotations/taglib/apt/TagAnnotationProcessor.java
struts/maven/trunk/struts-annotations/src/main/java/org/apache/struts/annotations/taglib/apt/TagAttribute.java
Modified: struts/maven/trunk/struts-annotations/src/main/java/org/apache/struts/annotations/taglib/apt/TagAnnotationProcessor.java
URL: http://svn.apache.org/viewvc/struts/maven/trunk/struts-annotations/src/main/java/org/apache/struts/annotations/taglib/apt/TagAnnotationProcessor.java?view=diff&rev=493646&r1=493645&r2=493646
==============================================================================
--- struts/maven/trunk/struts-annotations/src/main/java/org/apache/struts/annotations/taglib/apt/TagAnnotationProcessor.java (original)
+++ struts/maven/trunk/struts-annotations/src/main/java/org/apache/struts/annotations/taglib/apt/TagAnnotationProcessor.java Sat Jan 6 21:07:43 2007
@@ -126,6 +126,7 @@
attribute.setRequired((Boolean) values.get("required"));
attribute.setRtexprvalue((Boolean) values.get("rtexprvalue"));
attribute.setDefaultValue((String) values.get("defaultValue"));
+ attribute.setType((String) values.get("type"));
// add to map
Tag parentTag = tags.get(typeName);
if (parentTag != null)
Modified: struts/maven/trunk/struts-annotations/src/main/java/org/apache/struts/annotations/taglib/apt/TagAttribute.java
URL: http://svn.apache.org/viewvc/struts/maven/trunk/struts-annotations/src/main/java/org/apache/struts/annotations/taglib/apt/TagAttribute.java?view=diff&rev=493646&r1=493645&r2=493646
==============================================================================
--- struts/maven/trunk/struts-annotations/src/main/java/org/apache/struts/annotations/taglib/apt/TagAttribute.java (original)
+++ struts/maven/trunk/struts-annotations/src/main/java/org/apache/struts/annotations/taglib/apt/TagAttribute.java Sat Jan 6 21:07:43 2007
@@ -31,6 +31,7 @@
private boolean rtexprvalue;
private String description;
private String defaultValue;
+ private String type;
public String getDescription() {
return description;
@@ -70,5 +71,13 @@
public void setDefaultValue(String defaultValue) {
this.defaultValue = defaultValue;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
}
}
Added: struts/maven/trunk/struts-annotations/src/main/resources/org/apache/struts/annotations/taglib/apt/tag.ftl
URL: http://svn.apache.org/viewvc/struts/maven/trunk/struts-annotations/src/main/resources/org/apache/struts/annotations/taglib/apt/tag.ftl?view=auto&rev=493646
==============================================================================
--- struts/maven/trunk/struts-annotations/src/main/resources/org/apache/struts/annotations/taglib/apt/tag.ftl (added)
+++ struts/maven/trunk/struts-annotations/src/main/resources/org/apache/struts/annotations/taglib/apt/tag.ftl Sat Jan 6 21:07:43 2007
@@ -0,0 +1,48 @@
+<!--
+This file is generated during the build by processing Component class annotations.
+Please do not edit it directly.
+-->
+<html>
+ <head>
+ <title>${tag.name}</title>
+ </head>
+
+ <body>
+ <h1>Tag Name: ${tag.name}</h1>
+ <h2>Description</h2>
+ <p>
+ <!-- START SNIPPET: tagdescription -->
+ ${tag.description}
+ <!-- END SNIPPET: tagdescription -->
+ </p>
+
+ <h2>Attributes</h2>
+ <!-- START SNIPPET: tagattributes -->
+ <table width="100%">
+ <tr>
+ <th align="left" valign="top"><h4>Name</h4></th>
+ <th align="left" valign="top"><h4>Required</h4></th>
+ <th align="left" valign="top"><h4>Default</h4></th>
+ <th align="left" valign="top"><h4>Evaluated</h4></th>
+ <th align="left" valign="top"><h4>Type</h4></th>
+ <th align="left" valign="top"><h4>Description</h4></th>
+ </tr>
+ <#list tag.attributes as att>
+ <tr>
+ <td align="left" valign="top">${att.name}</td>
+ <td align="left" valign="top">${att.required?string}</td>
+ <td align="left" valign="top">${att.defaultValue}</td>
+ <td align="left" valign="top">${att.rtexprvalue?string}</td>
+ <td align="left" valign="top">${att.type}</td>
+ <td align="left" valign="top">${att.description}</td>
+ </tr>
+ </#list>
+ </table>
+ <!-- END SNIPPET: tagattributes -->
+
+ <p>
+ <center><a href="index.html">Back to Taglib Index</a></center>
+ </p>
+ </body>
+</html>
+