org.apache.tapestry.annotations
Annotation Type Asset


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface Asset

Defines a new asset. The asset will have the same name as the property (and will be accessible via the "asset:" binding prefix, or using IComponent.getAsset(String), with that name).

Note: if we ever rename IAsset to Asset, this will cause a naming conflict. Perhaps we should come up with annotation names that are compatible with a potential rename.

Since:
4.0
Author:
Howard M. Lewis Ship

Required Element Summary
 String value
          The value is the asset path, which may include a prefix to define the module in which it can be resolved.
 

Element Detail

value

public abstract String value
The value is the asset path, which may include a prefix to define the module in which it can be resolved.



Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.