[Seaside] Background pattern

Torsten.Bergmann at phaidros.com Torsten.Bergmann at phaidros.com
Wed Nov 19 14:02:48 CET 2003


Hi,

I want to provide a background pattern for my 
component.
If the image is an external resource I could
use the background-image in the stylesheet/style method - 
but it should be provided by Squeak.

The <body> is already created as part of the framework,
so how can I provide an own one? It's created inside the
response object - so there is no renderBodyOn: method
in WAComponent I could overwrite.

My current solution looks like this:

1. I've added a method providing a ColorForm. 
2. implemented
   renderContentOn: html
	html document body 
		attributeAt: 'background'
		put: (html urlForDocument: self resourceProvider
stripePattern1x4x4)

Is there a better way?

Thx
Torsten


More information about the Seaside mailing list