[Seaside] Reference to WAStyleLibrary

Bany, Michel mbany at cincom.com
Thu Oct 26 14:38:51 UTC 2006

Hi Dario,
	a) I'have defined one WAStyleLibrary subclass; ISTTabellaSortCSS
with some uploaded - pictures.
	Now in the styles method of the same class i reference this
	Example : background-image: url
	My question is : i can define the path of image with only last
	     background-image: url (''/downsimple.png'').

The above makes me assume that you are using the SeasideImageTools
from the public store repository.

The answer to your question is no. When FileLibrary is ported to VW
this will become possible (I believe).
	If yes where i define the prefix?
	b) The same problem is in javascript code where i reference the
	  example:  img src =

Here too, the answer to your question is no. It will become possible
with FileLibrary.
	c) What do you i need define to reference one image on my local
	C:\images\pippo.png ?
Place the "pippo.png" file into $(VISUALWORKS)/web/examples,
it will be served with url http://localhost:8008/seaside/pippo.png
You may build any folder structure from there.

If you really need to place your static files in a specific folder
you will need to configure your Seaside site using a configure
file (see the VW documentation) or, programmatically with something
like that

	(VisualWave.WebSite siteNamed: 'seaside') configParameters
		at: 'directory' put: 'c:/seaside'


More information about the Seaside mailing list