Check the link below:

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

--
Serge


----Original Message Follows----
From: "Sebastien Tardif" <[EMAIL PROTECTED]>
Reply-To: "Tapestry users" <[email protected]>
To: "'Tapestry users'" <[email protected]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to