You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Serge Eby <sd...@hotmail.com> on 2005/08/19 05:53:46 UTC

RE: property-specification should be optional most of the time and uses annotati

Check the link below:

http://jakarta.apache.org/tapestry/tapestry-annotations/index.html#Persist

--
Serge


----Original Message Follows----
From: "Sebastien Tardif" <at...@freenet.carleton.ca>
Reply-To: "Tapestry users" <ta...@jakarta.apache.org>
To: "'Tapestry users'" <ta...@jakarta.apache.org>
Subject: property-specification should be optional most of the time and uses 
annotation when need extra info
Date: Thu, 18 Aug 2005 23:34:23 -0400

I was reading section 3.5.3 Specifying properties in the page specification
of Tapestry in Action and then realized that writing something like:

<property-specification name="item" type="examples.todo1.ToDoItem"/>

Doesn't add anything to:
(In the page class)
public abstract ToDoItem getToDoItem()

So the property-specification should be optional here. Reflection should
understand that if somebody declared a get/set abstract in a page class
that's very probable that the goal was to have a property with the declared
type.

To specify persistent attribute and default value, annotation could be used.
Which annotation in this list
(http://jakarta.apache.org/tapestry/tapestry-annotations/index.html) is used
in Tapestry 4.0 for that?


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org