Thanks, @Persist binded my properties to the session as they had no where to
be stored.
Not sure how useful @Parameter will be. The cache attribute was
misleading.... When would you want to use this annotation?
Best regards
Ken in nashua
----Original Message Follows----
From: "Ken nashua" <[EMAIL PROTECTED]>
To: users@tapestry.apache.org
CC: [EMAIL PROTECTED]
Subject: tapestry-4.0.2 @Parameter : required = true (template binding)
Date: Tue, 23 Jan 2007 10:43:55 -0500
Folks,
I created a component.
TEMPLATE
<span jwcid="$content$">
<input jwcid="@Upload" file="ognl:file" type="file" displayName="File"
fileName="ognl:fileName" />
</span>
CLASS
public abstract class MyComponent extends BaseComponent {
@Parameter(required = true, cache = true)
public abstract String getFileName();
public abstract void setFileName(String fileName);
}
SPEC
<component-specification class="org.MyComponent"
allow-body="yes"
allow-informal-parameters="yes"/>
But I continue to receive this...
org.apache.hivemind.ApplicationRuntimeException
Required parameter fileName of component
trails:Editors/blobFields.$TrailsUpload is not bound.
My pom.xml uses
<dependency>
<groupId>tapestry</groupId>
<artifactId>tapestry</artifactId>
<version>4.0.2</version>
</dependency>
<dependency>
<groupId>tapestry</groupId>
<artifactId>tapestry-annotations</artifactId>
<version>4.0.2</version>
</dependency>
I defined fileName as ognl binding in the template...
Can someone explain this?
Best regards
Ken in nashua
_________________________________________________________________
The MSN Entertainment Guide to Golden Globes is here. Get all the scoop.
http://tv.msn.com/tv/globes2007/?icid=nctagline2
_________________________________________________________________
Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping
http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tcode=wlmtagline
_________________________________________________________________
Get in the mood for Valentine's Day. View photos, recipes and more on your
Live.com page.
http://www.live.com/?addTemplate=ValentinesDay&ocid=T001MSN30A0701
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]