On Mon, 11 Oct 2010 09:40:01 -0300, Stephan Windmüller <stephan.windmuel...@tu-dortmund.de> wrote:

Hello!

Hi!

Currently we have a lot of onActivate/Passivate calls of the form

void onActivate(String thingId) throws NotFoundException{
        this.thing = myService.getThing(thingId);
}

My thought was to contribute a custom ValueEncoder and use

void onActivate(Thing thing)

instead. But as far as I can see there is no way to handle the
NotFoundException which should be thrown for illegal IDs. Is there a way
to handle this in Tapestry?

Have you tried an onException(Exception e) method in your page class?

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to