[Seaside] Create a personal banner for seaside

Mike Hales mike.hales at kscape.com
Fri Jul 14 22:19:38 UTC 2006

Dario, in a workspace

      imageFromFile: (OpenFileDialog new select)
      toClass: YourComponentClass
      selector: #darioBanner

Will get you a CachedImage as a resource on the class side of
YourComponentClass (just select the jpg from the dialog).

Then to serve it through seaside (using the Canvas api) you can do
something like this:

YourComponentClass >> renderContentOn: html
html image
    resourceUrl: (
          html context
               urlForDocument: self class darioBanner image
asMIMEDocument content
		 mimeType: 'image/gif'
		 fileName: 'darioBanner.gif')

More information about the Seaside mailing list