I suppose, what you call from the form-listener is "setMessage()"?
Maybe pageEndRender is not the best place to reset your message because upon
rewinding it will be called twice for one request-cycle if I remember it
correctly. So, if your message occurs during form-rewind it will be
discarded at the end of the rewind.
I'm doing this in Page.initialize() which works just fine.
Von: Scott F. Walter [mailto:[hidden email]]
Gesendet: Dienstag, 17. Mai 2005 04:37
An: Tapestry users
Betreff: Border Component and Messages
I had a solution for displaying messages at the top of page that I
thought worked pretty well. It works by:
1. BorderComponets gets access to a method on the page called
getMessage() and if its not null displays the message
2. The pageEndRenderer in my base Page class calls setMessage(null) to
make sure the message is only displayed once.
However, it doesn't seem to work when I call it from a form listener.
Any ideas why and how would be the best way to solve it?
Scott F. Walter Scott F. Walter