Hi Stephane, It is legal to have more than one annotation on a single property/method. But component parameters cannot be persisted on the component. You will need to persist the property on the page using the component, then pass that into the component.
Ben -----Original Message----- From: Stephane Decleire [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 8:43 AM To: [email protected] Subject: Mulitple annotations on a property Hi all, I need to set a property of a component to be persisted and required together : @Persist("session") @Parameter(required = true) public abstract void setAddress(Address address); public abstract Address getAddress(); But Tapestry send me this exception : Property address has already been accounted for by the element at Annotation @org.apache.tapestry.annotations.Persist(value=session) Is it forbidden to put two annotations on a property ? Thanks in advance. -- Stéphane Decleire 05 56 57 99 20 06 63 78 69 06 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
