Update of
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-tapestry/src/main/java/org/xdoclet/plugin/tapestry/jelly
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28558/xdoclet-plugins/plugin-tapestry/src/main/java/org/xdoclet/plugin/tapestry/jelly
Modified Files:
Inject.jelly
Log Message:
Added support for shortcut tags injection
Index: Inject.jelly
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-tapestry/src/main/java/org/xdoclet/plugin/tapestry/jelly/Inject.jelly,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Inject.jelly 22 Aug 2005 09:49:26 -0000 1.1
--- Inject.jelly 7 Sep 2005 15:01:37 -0000 1.2
***************
*** 4,6 ****
--- 4,25 ----
<inject property="${inject.property}" type="${inject.type}"
object="${inject.object}"/>
</j:forEach>
+
+ <!-- process shortcuts -->
+ <j:forEach var="getterMethod" items="${plugin.getAbstractGetters(class)}">
+ <j:forEach var="inject"
items="${getterMethod.getTagsByName('tapestry.inject-page')}">
+ <inject property="${getterMethod.propertyName}" type="page"
object="${inject.getNamedParameter('object')}"/>
+ </j:forEach>
+ <j:forEach var="inject"
items="${getterMethod.getTagsByName('tapestry.inject-state')}">
+ <inject property="${getterMethod.propertyName}" type="state"
object="${inject.getNamedParameter('object')}"/>
+ </j:forEach>
+ <j:forEach var="inject"
items="${getterMethod.getTagsByName('tapestry.inject-meta')}">
+ <inject property="${getterMethod.propertyName}" type="meta"
object="${inject.getNamedParameter('object')}"/>
+ </j:forEach>
+ <j:forEach var="inject"
items="${getterMethod.getTagsByName('tapestry.inject-object')}">
+ <inject property="${getterMethod.propertyName}"
object="${inject.getNamedParameter('object')}"/>
+ </j:forEach>
+ <j:forEach var="inject"
items="${getterMethod.getTagsByName('tapestry.inject-script')}">
+ <inject property="${getterMethod.propertyName}" type="script"
object="${inject.getNamedParameter('object')}"/>
+ </j:forEach>
+ </j:forEach>
</j:jelly>
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits