User Documentation
One Minute Introduction
Two Minute Introduction
Your own plugin
Coffee Break Introduction
Property substitution
FAQ
|
|||||
|
|||||
User DocumentationOne Minute Introduction |
1. Introduction to the X2TP
The tapestry plugin is under heavy development, and will be a lot better than the old XDoclet counterpart.
Shortcut tags will allow you to save many lines on writing your doc, for example this .page file: <page-specification class="test.SamplePage"> <description>my Sample Page :-)</description> <component type="PageLink" id="component1"> <binding name="page" value="Page1"/> <binding name="renderer" value="beans.bean1"/> </component> </page-specification> Can be generated by: test/SamplePage.java /** * @tapestry.page-specification description="my Sample Page :-)" * * @tapestry.component id="component1" type="PageLink" * @tapestry.binding component-id="component1" name="page" value="Page1" * @tapestry.binding component-id="component1" name="renderer" value="beans.bean1" */ public abstract class SamplePage extends BasePage { ... } or even better by a shotcut tag: test/SamplePage.java /** * @tapestry.page-specification description="my Sample Page :-)" * * @tapestry.page-link id="component1" page="Page1" renderer="beans.bean1" */ public abstract class SamplePage extends BasePage { ... } |
||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||