Hey Sebastien. In tap 4, you only need to have the abstact getter in your class for properties. If you want the property to be persistent, you do something like this:
@Persist public abstract int getCounter(); No page specification required... Cheers, Mark On 8/18/05, Sebastien Tardif <[EMAIL PROTECTED]> wrote: > 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]
