I would recommend that you not extend a TemplateScreen unless you intend
to use templates. Since it is the security that you are after either
copy the code into your screen that could just extend Screen. Or create
a SecureScreen that extends Screen and then further extend that.
As for an example, there used to be a Screen that served binary (image)
data. If it is no longer in the screens package, look in the Attic.
Steve Ruby wrote:
>
> I have an application that is made up of screens that
> extend ClientFilesSiteScreen (ClientFilesSiteScreen) extends
> WebMacroSiteSecureScreen.
>
> On a given screen I made need alternatively write binary data
> out to the user.. Is there a way (proper way) to opt out
> of processing the template in doBuildTemplate(data,context)
> and write binary directly to the client, changing the
> ContentType and and everything. Obviously I need to have
> it skip looking for a template, or processing the layout
> at all.
>
> I've got an exisitng servlet (not turbine) that reads
> the appropriate data and writes it out, it does everything
> I need but it doesn't fit into the turbine security model.
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]