[Seaside-dev] correction

Philippe Marschall philippe.marschall at gmail.com
Thu Sep 10 20:20:01 UTC 2009


2009/9/10 Robert Shiplett <grshiplett2 at yahoo.com>
>
> Philippe
>
> I don't want to argue about the implementation of  WARenderer<<default
>
> I mis-typed:  WARenderCanvas is the HTML subclass ...
>
> Other continuing examples of issues with MimeType:
>
> WAResponseGenerator>>pageExpired
> "The page is no longer in the cache and the request could not be processed."
>
> self response
>    doNotCache;
>    contentType: WAMimeType textPlain;
>    nextPutAll: 'This page has expired, please use the back-button to navigate to the last   valid page.'

Just make a subclass, override the methods (see
WAHtmlResponseGenerator) and make the #responseGenerator setting on
your application point to your class.

You could probably also make your subclass of
WARequestHandlingConfiguration that overrides the default setting for
#responseGenerator.

Cheers
Philippe


More information about the seaside-dev mailing list