On Tue, 09 Jun 2015 14:39:54 -0300, Stephen Nutbrown <steves...@gmail.com>
wrote:
Hi Thiago,
Hi!
That's interesting. Perhaps the documentation wants updating. It says:
"Note the importance of return this;. A void event handler method, or
one that returns null, will result in the FileUploadException being
reported to the user as an uncaught runtime exception."
https://tapestry.apache.org/uploading-files.html
Not returning "this" isn't just for uploading exceptions: it's for all
event handler methods, so I don't think it makes sense to put this warning
in uploading-files.html.
In your original code, returning "this", if you annotated your field with
@Persist(PersistenceConstants.FLASH), the message would appear. In this
very case, it appears to be the right thing to do (return "this"), as
otherwise Tapestry still considers the event as not handled and the
generic exception handling is used.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org