You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Joachim Van der Auwera <jo...@progs.be> on 2004/12/01 09:18:44 UTC

Re: abort page rendering for exception handling

Rene Schneider wrote:
> Hello! 
>  
> I have a page in which I use a ForEach component to iterate over a list. The
> method 
> that returns the list fetch the list items from database. Thereby can a 
> java.lang.Exception occur. I catch the Exception in this method and want to
> handle 
> it. Therefor I activate another page, but than tapestry shows this error: 
>  
> Class org.apache.tapestry.components.Foreach$Enhance_607 overrides method 
> 'prepareForRender()' but does not invoke the super-class implementation. 

Of course I may just be a complete idiot, but have you considered 
calling super.prepareForRender() at the beginning of your 
prepareForRender method in your page class?

I might help.

Joachim

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: abort page rendering for exception handling

Posted by Rene Schneider <Re...@gmx.de>.
Joachim wrote:
> Rene Schneider wrote:
> >  
> > I have a page in which I use a ForEach component to iterate over a list.
> The
> > method 
> > that returns the list fetch the list items from database. Thereby can a 
> > java.lang.Exception occur. I catch the Exception in this method and want
> to
> > handle 
> > it. Therefor I activate another page, but than tapestry shows this
> error: 
> >  
> > Class org.apache.tapestry.components.Foreach$Enhance_607 overrides
> method 
> > 'prepareForRender()' but does not invoke the super-class implementation.
> 
> Of course I may just be a complete idiot, but have you considered 
> calling super.prepareForRender() at the beginning of your 
> prepareForRender method in your page class?

I did not overwrite the method prepareForRender.
It is just a simple BasePage which has a ForEach element in his HTML file
where an exception can occur while getting the list to iterate over.

René

-- 
Geschenkt: 3 Monate GMX ProMail + 3 Top-Spielfilme auf DVD
++ Jetzt kostenlos testen http://www.gmx.net/de/go/mail ++

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org