[Seaside] updateRoot: Weirdness

Michel Bany michel.bany at gmail.com
Wed Jul 18 12:59:14 UTC 2007

On 18 Jul 2007, at 14:08 , Richard K Eng wrote:

> Sorry, it still didn't help. This is so frustrating! How can  
> something so basic and fundamental to Seaside be so problematic?!!

This is because Seaside is so awfully heretic and does not serve  
static files. You need a web server for that.

	aRoot linkToStyle: 'http://myserver/colour.css'.

If you cannot do this then you can create a handler for your file,  
something like this (untested)

	aRoot linkToStyle:
			(aRoot context
					urlForDocument: (WACachedDocument fileName: 'colour.css')
					mimeType: 'text/css'
					fileName: 'colour.css')

Please note that this api is deprecated in Seaside 2.7 and gone in  
Seaside 2.8.

With the regular api it would be something like this (untested)

	aRoot stylesheet resourceUrl:
			(aRoot context
					urlForDocument: (WACachedDocument fileName: 'colour.css')
					mimeType: 'text/css'
					fileName: 'colour.css')


Seaside: Do not program the web, model it

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20070718/6d672a7a/attachment.htm

More information about the Seaside mailing list