You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by an...@apache.org on 2006/10/05 20:48:26 UTC
svn commit: r453313 -
/tapestry/tapestry4/trunk/tapestry-annotations/src/site/xdoc/index.xml
Author: andyhot
Date: Thu Oct 5 11:48:25 2006
New Revision: 453313
URL: http://svn.apache.org/viewvc?view=rev&rev=453313
Log:
TAPESTRY-913 and TAPESTRY-1056: Document copyOf attribute and fix links to spec page.
Modified:
tapestry/tapestry4/trunk/tapestry-annotations/src/site/xdoc/index.xml
Modified: tapestry/tapestry4/trunk/tapestry-annotations/src/site/xdoc/index.xml
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-annotations/src/site/xdoc/index.xml?view=diff&rev=453313&r1=453312&r2=453313
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-annotations/src/site/xdoc/index.xml (original)
+++ tapestry/tapestry4/trunk/tapestry-annotations/src/site/xdoc/index.xml Thu Oct 5 11:48:25 2006
@@ -52,7 +52,7 @@
The
<a href="apidocs/org/apache/tapestry/annotations/Asset.html">Asset</a>
annotation is the equivalent of the
- <a href="#spec.asset"><asset></a>
+ <a href="../UsersGuide/spec.html#<asset> element"><asset></a>
element in a specification. The value attribute is the path to the asset
(possibly prefixed to indicate the domain for the path):
</p>
@@ -78,7 +78,7 @@
The
<a href="apidocs/org/apache/tapestry/annotations/Bean.html">Bean</a>
annotation is the equivalent of the
- <a href="#spec.bean"><bean></a>
+ <a href="../UsersGuide/spec.html#<bean> element"><bean></a>
element in a specification.
</p>
@@ -139,7 +139,7 @@
<a href="apidocs/org/apache/tapestry/annotations/Component.html">Component</a>
annotation is attached to an accessor method and allows a component type to be
defined in place, as with the
- <a href="#spec.component"><component></a>
+ <a href="../UsersGuide/spec.html#<component> element"><component></a>
element.
</p>
@@ -181,6 +181,18 @@
public abstract IComponent getIfMessage();
</source>
+ <p>
+ Component copies can be created by specifying the copyOf attribute. It should
+ contain the name of another defined component. The type and bindings of
+ that component will be copied to this component. The following code creates
+ a copy of the previous component:
+ </p>
+
+ <source xml:space="preserve">
+ @Component(copyOf = "ifMessage")
+ public abstract IComponent getIfMessageCopy();
+</source>
+
</subsection>
<subsection name="ComponentClass">
@@ -194,8 +206,8 @@
</a>
annotation is used to mark a Java class as a component, and allows several
properties normally specified using the
- <a href="#spec.component-specification"><component-specification></a>
- element.
+ <a href="../UsersGuide/spec.html#<component-specification> element">
+ <component-specification></a> element.
</p>
<source xml:space="preserve">
@@ -438,7 +450,7 @@
<p>
This is equivalent to specifying the property attribute of the
- <a href="#spec.asset"><asset></a>
+ <a href="../UsersGuide/spec.html#<asset> element"><asset></a>
element.
</p>
@@ -463,7 +475,7 @@
<p>
This is functionally the same as providing the property attribute of the
- <a href="#spec.component"><component></a>
+ <a href="../UsersGuide/spec.html#<component> element"><component></a>
element.
</p>
@@ -476,7 +488,7 @@
The
<a href="apidocs/org/apache/tapestry/annotations/InjectMeta.html">InjectMeta</a>
annotation allows meta data from the specification (
- <a href="#spec.meta"><meta> elements)</a>
+ <a href="../UsersGuide/spec.html#<meta> element"><meta> elements</a> )
to be exposed as properties.
</p>
@@ -522,7 +534,7 @@
<p>
The end result is the same as using the
- <a href="#spec.inject"><inject></a>
+ <a href="../UsersGuide/spec.html#<inject> element"><inject></a>
element, with the default type of "object".
</p>
@@ -586,7 +598,7 @@
<p>
The end result is equivalent to using the
- <a href="#spec.inject"><inject></a>
+ <a href="../UsersGuide/spec.html#<inject> element"><inject></a>
element, with a type of "state".
</p>
@@ -624,7 +636,7 @@
<p>
The end result is equivalent to using the
- <a href="#spec.inject"><inject></a>
+ <a href="../UsersGuide/spec.html#<inject> element"><inject></a>
element, with a type of "state-flag".
</p>
@@ -728,7 +740,7 @@
<a href="apidocs/org/apache/tapestry/annotations/Meta.html">Meta</a>
annotation is used to define a meta data value on a page or component class, as
with the
- <a href="#spec.meta"><meta></a>
+ <a href="../UsersGuide/spec.html#<meta> element"><meta></a>
element in an XML component or page specification.
</p>
@@ -770,7 +782,7 @@
The
<a href="apidocs/org/apache/tapestry/annotations/Parameter.html">Parameter</a>
annotation defines a new property, as with
- <a href="#spec.parameter"><parameter></a>
+ <a href="../UsersGuide/spec.html#<parameter> element"><parameter></a>
element in an XML component specification.
</p>
@@ -838,7 +850,7 @@
<p>
This annotation works exactly like a
- <a href="#spec.property"><property></a>
+ <a href="../UsersGuide/spec.html#<property> element"><property></a>
element, except that the initial-value attribute can't be specified. Use the
<a href="#InitialValue">@InitialValue</a>
annotation to set the property's initial value.