[Seaside] CSS URLs
bert at freudenbergs.de
Wed Oct 4 13:19:40 UTC 2006
SqueakSource also serves a headline image referenced from a style
sheet. Cannot recall the details, though.
- Bert -
Am 04.10.2006 um 15:14 schrieb Ron Teitelbaum:
> Hi Michel,
> That's exactly what I'm looking for. I don't see anything similar for
> Squeak. What are the chances of allowing me to port the code to
>> -----Original Message-----
>> From: Michel Bany [mailto:michel.bany at gmail.com]
>> Sent: Wednesday, October 04, 2006 6:16 AM
>> To: Ron at USMedRec.com; The Squeak Enterprise Aubergines Server -
>> Subject: Re: [Seaside] CSS URLs
>> Hi Ron,
>>> To do this I would need to be able to support a URL in css. I've
>>> got this
>>> working "IF" I translate the url to a seaside url.
>> I have done something similar in VW as part of parcel
>> The idea is to use a subclass of WARequestHandler that is designed to
>> graphic files. This subclass is named WAPictureServer and is
>> as 'images' in the default dispatcher. As a result, any url in the
>> /seaside/images/foo/bar/... is dispatched to this handler via
>> The corresponding method delegates the request handling to an
>> of WAPictureHandler. It parses the url like that :
>> AAA is the name of a class
>> BBB is the name of an annotated method that answers a byte array
>> .CCC is optional and ignored
>> Typically, AAA is a subclass of WAStyleLibrary and method BBB is
>> annotated like this :
>> <objectNamed: 'bg.gif'
>> contentType: 'image/gif'
>> uploadDate: 'April 13, 2005 12:00:00.002'
>> creationDate: 'April 13, 2005 12:00:00.003'
>> modificationDate: 'April 13, 2005 12:00:00.004'
>> by: 'Douglas Bowman'>
>> ^ ByteArray fromPackedString:
>> 'Q4%FNC%!E@@- at LP@@M7#5]/!4?;>?/K4;.[)8M+ 4/3<?OW7</''9=>+-9NC$5.W
>> $6_G3;.C#6N#+8"G9A@@@@@@@K@@@@@@T at B4@@@W XBFNYF&^JA&,[N.>\B3OK&C_^J;/
>> [;?#8Y?>Y>O>@ XDI!HVF!8"I" $V#AZO$IFR$!.U%)^XF06[''I6^'' 2!(*N$)
>> [VBM''Z6=3]7-?[ENK#9NW%E^#):./+A.;/<OG2<?S0F/_8>_+:@/7>?0 at CB!1H,BC at B0
>> SJ%28L at P@N0 at a'
>> The above sample answers a ByteArray built from a constant. It could
>> also answer a Byte Array read from a file and cached.
>> With the above in place you can now have things like this in your
>> Not sure if this has been done in Squeak.
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
More information about the Seaside