"Roel van Dijk" <[EMAIL PROTECTED]> writes:

> I'm using Jetspeed 1.6-dev.
>
> Is it possible to stop the rendering of a portlet when an error occurs in
> the buildNormalContext method? For example, if the portlet uses a URL and
> the URL can't be reached, the portlet doesn't need to be displayed. Any
> ideas?

Short answer: you can't. Basically, as soon as a portlet is rendered
the data is sent to server and for all practical purposes can't be
undone.

So, what you want is to do the resource fetching _before_ any of the
portlet is rendered. One way to do this is to create an Action that
does the fetching, and upon a submit from your portlet, go to this
Action.

YS.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to