Hi! On Tue, 25 Mar 2014 08:26:33 -0300, Davide Vecchi <d...@amc.dk> wrote:
I have a zone to show possible errors that might occur in a get* method called by Tapestry during page rendering to retrieve the value for a property (String myValue in the example below).
Why do you want for that to happen inside a getter? It does look like a wrong thing for me. Getters are mostly expected to not have side-effects.
So in this getMyValue() method I set the error message into another property (@Property String errorMessage) and I call addRender to update the template zone errorZone, where ${errorMessage} is placed.
You're trying to use AjaxResponseRenderer during the initial render of the zone, which is a normal, full-page, non-AJAX request, not when the zone is being updated during an AJAX request. In addition, your getter, which is the method that sets the error message, is only invoked *after* the zone is rendered. There's nothing in your page that triggers the AJAX update so you can show the error.
-- 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