Christian,

Your reply was of greate help. Indeed, since I was using a
redirect-after-post the delegate never had a chance to do its work.

Thank you!


-----Original Message-----
From: Christian Dutaret [mailto:[EMAIL PROTECTED] 
Sent: den 6 juli 2006 12:10
To: Tapestry users
Subject: Re: ValidationDelegate doesn't decorate

I had the same symptoms a while ago, I don't know if it's the same problem
you're facing, but this might be helpful:
When you instantiate your delegate and pass it to the form component, you
have to make sure it is the same instance during the whole cycle. If you
create a new instance of the delegate each time you render the page, then it
won't keep track of the errors discovered during the previous
rewind: your page won't validate, but decorations are not rendered
(isInError() returns false)
What I do is create a new instance of the delegate only if there isn't one
yet, and make it available to the form component through a page property.

HTH
Ch.



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

Reply via email to