Hello all,
Thank you everyone that has worked on seaside. Seaside is really a wonderful environment! I'm still getting my feet wet. I have a question. I would like to generate tabs that look like the attached html file. 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 see the generateUrlForDocument but the image tag needs context to generate the url. I figured I would parse and replace the urls in WAPresenter>>updateRoot: anHtmlRoot self script ifNotNilDo: [:script | anHtmlRoot addScript: script]. self style halt ifNotNilDo: [:style | anHtmlRoot addStyle: style]. This makes sense to me since it appears that the css is added for each change in session and the images hold their seaside url throughout a session. I also figured this was possible since I have the context in WAPresenter. When I tried to create an image WARoundedTabStyle image: #bg on: (WARenderCanvas context: self context callbacks: #()) (the image: imageName on: html method just does: ^html image fileName: imageName, '.gif'; mimeType: 'image/gif'; document: (self base64Decode: (self perform: imageName)) ) Creating a new canvas seems to have wiped things clean. Is there an easier way to generate and set the url of an image so that I can parse the CSS and replace url(some.gif) with the seaside url for that gif? Thanks for your help! Ron Teitelbaum _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside tabsRounded.html (2K) Download Attachment |
2006/10/4, Ron Teitelbaum <[hidden email]>:
> Hello all, > > Thank you everyone that has worked on seaside. Seaside is really a > wonderful environment! I'm still getting my feet wet. > > I have a question. I would like to generate tabs that look like the > attached html file. > > 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 see the generateUrlForDocument but the image tag needs context to generate > the url. I figured I would parse and replace the urls in > > WAPresenter>>updateRoot: anHtmlRoot > self script ifNotNilDo: [:script | anHtmlRoot addScript: script]. > self style halt ifNotNilDo: [:style | anHtmlRoot addStyle: style]. > > This makes sense to me since it appears that the css is added for each > change in session and the images hold their seaside url throughout a > session. > > I also figured this was possible since I have the context in WAPresenter. > When I tried to create an image > > WARoundedTabStyle image: #bg on: (WARenderCanvas context: self context > callbacks: #()) > > (the image: imageName on: html method just does: > ^html image > fileName: imageName, '.gif'; > mimeType: 'image/gif'; > document: (self base64Decode: (self perform: imageName)) > ) > > Creating a new canvas seems to have wiped things clean. Is there an easier > way to generate and set the url of an image so that I can parse the CSS and > replace url(some.gif) with the seaside url for that gif? > > Thanks for your help! You more or less have two options: - serve static files either with seaside or apache - use file library Philippe _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Ron Teitelbaum
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 "SeasideWebDesignerTool". The idea is to use a subclass of WARequestHandler that is designed to serve graphic files. This subclass is named WAPictureServer and is registered as 'images' in the default dispatcher. As a result, any url in the form /seaside/images/foo/bar/... is dispatched to this handler via #handleRequest: The corresponding method delegates the request handling to an instance of WAPictureHandler. It parses the url like that : /seaside/images/AAA/BBB.CCC where 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 : bg <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@@-@LP@@M7#5]/!4?;>?/K4;.[)8M+ 4/3<?OW7</''9=>+-9NC$5.W (7.;1:.70:^?2:>K%6/#8=/_7=_O5<N'',8?+:>O/;>>/.97]&U^O&6>S''7_7=?^3/:NG $6_G3;.C#6N#+8"G9A@@@@@@@K@@@@@@T@B4@@@W XBFNYF&^JA&,[N.>\B3OK&C_^J;/ _N?''"*A0RB0ZO\"$D&%T\I;P:OMA+U*/U8162>56L>B0^C1^&L?(]I*0XK/[!K!<S*? [;?#8Y?>Y>O>@ XDI!HVF!8"I" $V#AZO$IFR$!.U%)^XF06[''I6^'' 2!(*N$) ZHN*J&**:,C+*>0,[D]-KV4,*:6.K.1D+:?0LGAA<SE1,_H2\+FD\7N3=CPDMOT5] [VBM''Z6=3]7-?[ENK#9NW%E^#):./+A.;/<OG2<?S0F/_8>_+:@/7>?0@CB!1H,BC@B0 SJ%28L@P@N0@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 css: url("/seaside/images/SlidingDoors/bg.gif") Not sure if this has been done in Squeak. HTH Michel. _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
2006/10/4, Michel Bany <[hidden email]>:
> 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 > "SeasideWebDesignerTool". > The idea is to use a subclass of WARequestHandler that is designed to > serve > graphic files. This subclass is named WAPictureServer and is registered > as 'images' in the default dispatcher. As a result, any url in the form > /seaside/images/foo/bar/... is dispatched to this handler via > #handleRequest: > The corresponding method delegates the request handling to an instance > of WAPictureHandler. It parses the url like that : > /seaside/images/AAA/BBB.CCC > where > 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 : > > bg > <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@@-@LP@@M7#5]/!4?;>?/K4;.[)8M+ 4/3<?OW7</''9=>+-9NC$5.W > (7.;1:.70:^?2:>K%6/#8=/_7=_O5<N'',8?+:>O/;>>/.97]&U^O&6>S''7_7=?^3/:NG > $6_G3;.C#6N#+8"G9A@@@@@@@K@@@@@@T@B4@@@W XBFNYF&^JA&,[N.>\B3OK&C_^J;/ > _N?''"*A0RB0ZO\"$D&%T\I;P:OMA+U*/U8162>56L>B0^C1^&L?(]I*0XK/[!K!<S*? > [;?#8Y?>Y>O>@ XDI!HVF!8"I" $V#AZO$IFR$!.U%)^XF06[''I6^'' 2!(*N$) > ZHN*J&**:,C+*>0,[D]-KV4,*:6.K.1D+:?0LGAA<SE1,_H2\+FD\7N3=CPDMOT5] > [VBM''Z6=3]7-?[ENK#9NW%E^#):./+A.;/<OG2<?S0F/_8>_+:@/7>?0@CB!1H,BC@B0 > SJ%28L@P@N0@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 css: > url("/seaside/images/SlidingDoors/bg.gif") > > Not sure if this has been done in Squeak. FileLibrary does something very similar. Differences: - doesn't use pragmas, so it works with 3.7 and 3.8 - file extension is part of the filename - mimetype is guessed from the file extension - no other metadata - classname is ignored - non-text content is stored either in a array literal (and cached) or bytearray literal Philippe _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Michel Bany
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 squeak? Ron > -----Original Message----- > From: Michel Bany [mailto:[hidden email]] > Sent: Wednesday, October 04, 2006 6:16 AM > To: [hidden email]; The Squeak Enterprise Aubergines Server - general > discussion. > 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 > "SeasideWebDesignerTool". > The idea is to use a subclass of WARequestHandler that is designed to > serve > graphic files. This subclass is named WAPictureServer and is registered > as 'images' in the default dispatcher. As a result, any url in the form > /seaside/images/foo/bar/... is dispatched to this handler via > #handleRequest: > The corresponding method delegates the request handling to an instance > of WAPictureHandler. It parses the url like that : > /seaside/images/AAA/BBB.CCC > where > 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 : > > bg > <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@@-@LP@@M7#5]/!4?;>?/K4;.[)8M+ 4/3<?OW7</''9=>+-9NC$5.W > (7.;1:.70:^?2:>K%6/#8=/_7=_O5<N'',8?+:>O/;>>/.97]&U^O&6>S''7_7=?^3/:NG > $6_G3;.C#6N#+8"G9A@@@@@@@K@@@@@@T@B4@@@W XBFNYF&^JA&,[N.>\B3OK&C_^J;/ > _N?''"*A0RB0ZO\"$D&%T\I;P:OMA+U*/U8162>56L>B0^C1^&L?(]I*0XK/[!K!<S*? > [;?#8Y?>Y>O>@ XDI!HVF!8"I" $V#AZO$IFR$!.U%)^XF06[''I6^'' 2!(*N$) > ZHN*J&**:,C+*>0,[D]-KV4,*:6.K.1D+:?0LGAA<SE1,_H2\+FD\7N3=CPDMOT5] > [VBM''Z6=3]7-?[ENK#9NW%E^#):./+A.;/<OG2<?S0F/_8>_+:@/7>?0@CB!1H,BC@B0 > SJ%28L@P@N0@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 css: > url("/seaside/images/SlidingDoors/bg.gif") > > Not sure if this has been done in Squeak. > > HTH > Michel. _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
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 > squeak? > > Ron > > >> -----Original Message----- >> From: Michel Bany [mailto:[hidden email]] >> Sent: Wednesday, October 04, 2006 6:16 AM >> To: [hidden email]; The Squeak Enterprise Aubergines Server - >> general >> discussion. >> 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 >> "SeasideWebDesignerTool". >> The idea is to use a subclass of WARequestHandler that is designed to >> serve >> graphic files. This subclass is named WAPictureServer and is >> registered >> as 'images' in the default dispatcher. As a result, any url in the >> form >> /seaside/images/foo/bar/... is dispatched to this handler via >> #handleRequest: >> The corresponding method delegates the request handling to an >> instance >> of WAPictureHandler. It parses the url like that : >> /seaside/images/AAA/BBB.CCC >> where >> 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 : >> >> bg >> <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@@-@LP@@M7#5]/!4?;>?/K4;.[)8M+ 4/3<?OW7</''9=>+-9NC$5.W >> (7.;1:.70:^?2:>K%6/#8=/_7=_O5<N'',8?+:>O/;>>/.97]&U^O&6>S''7_7=? >> ^3/:NG >> $6_G3;.C#6N#+8"G9A@@@@@@@K@@@@@@T@B4@@@W XBFNYF&^JA&,[N.>\B3OK&C_^J;/ >> _N?''"*A0RB0ZO\"$D&%T\I;P:OMA+U*/U8162>56L>B0^C1^&L?(]I*0XK/[!K!<S*? >> [;?#8Y?>Y>O>@ XDI!HVF!8"I" $V#AZO$IFR$!.U%)^XF06[''I6^'' 2!(*N$) >> ZHN*J&**:,C+*>0,[D]-KV4,*:6.K.1D+:?0LGAA<SE1,_H2\+FD\7N3=CPDMOT5] >> [VBM''Z6=3]7-?[ENK#9NW%E^#):./+A.;/<OG2<?S0F/_8>_+:@/7>?0@CB!1H,BC@B0 >> SJ%28L@P@N0@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 >> css: >> url("/seaside/images/SlidingDoors/bg.gif") >> >> Not sure if this has been done in Squeak. >> >> HTH >> Michel. > > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Ron Teitelbaum
2006/10/4, Ron Teitelbaum <[hidden email]>:
> 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 squeak? About for the third time: FileLibrary does the same thing for Squeak. Philippe > Ron > > > > -----Original Message----- > > From: Michel Bany [mailto:[hidden email]] > > Sent: Wednesday, October 04, 2006 6:16 AM > > To: [hidden email]; The Squeak Enterprise Aubergines Server - general > > discussion. > > 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 > > "SeasideWebDesignerTool". > > The idea is to use a subclass of WARequestHandler that is designed to > > serve > > graphic files. This subclass is named WAPictureServer and is registered > > as 'images' in the default dispatcher. As a result, any url in the form > > /seaside/images/foo/bar/... is dispatched to this handler via > > #handleRequest: > > The corresponding method delegates the request handling to an instance > > of WAPictureHandler. It parses the url like that : > > /seaside/images/AAA/BBB.CCC > > where > > 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 : > > > > bg > > <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@@-@LP@@M7#5]/!4?;>?/K4;.[)8M+ 4/3<?OW7</''9=>+-9NC$5.W > > (7.;1:.70:^?2:>K%6/#8=/_7=_O5<N'',8?+:>O/;>>/.97]&U^O&6>S''7_7=?^3/:NG > > $6_G3;.C#6N#+8"G9A@@@@@@@K@@@@@@T@B4@@@W XBFNYF&^JA&,[N.>\B3OK&C_^J;/ > > _N?''"*A0RB0ZO\"$D&%T\I;P:OMA+U*/U8162>56L>B0^C1^&L?(]I*0XK/[!K!<S*? > > [;?#8Y?>Y>O>@ XDI!HVF!8"I" $V#AZO$IFR$!.U%)^XF06[''I6^'' 2!(*N$) > > ZHN*J&**:,C+*>0,[D]-KV4,*:6.K.1D+:?0LGAA<SE1,_H2\+FD\7N3=CPDMOT5] > > [VBM''Z6=3]7-?[ENK#9NW%E^#):./+A.;/<OG2<?S0F/_8>_+:@/7>?0@CB!1H,BC@B0 > > SJ%28L@P@N0@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 css: > > url("/seaside/images/SlidingDoors/bg.gif") > > > > Not sure if this has been done in Squeak. > > > > HTH > > Michel. > > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Philippe,
I apologize. I didn't read all the posts before replying (I read the posts that were directed directly to me first). I will go back and read through everything and will look at FileLibrary right away. Thank you for your help! Ron > -----Original Message----- > From: Philippe Marschall [mailto:[hidden email]] > Sent: Wednesday, October 04, 2006 9:28 AM > To: [hidden email]; The Squeak Enterprise Aubergines Server - general > discussion. > Subject: Re: [Seaside] CSS URLs > > 2006/10/4, Ron Teitelbaum <[hidden email]>: > > 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 squeak? > > About for the third time: > FileLibrary does the same thing for Squeak. > > Philippe > > > Ron > > > > > > > -----Original Message----- > > > From: Michel Bany [mailto:[hidden email]] > > > Sent: Wednesday, October 04, 2006 6:16 AM > > > To: [hidden email]; The Squeak Enterprise Aubergines Server - > general > > > discussion. > > > 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 > > > "SeasideWebDesignerTool". > > > The idea is to use a subclass of WARequestHandler that is designed to > > > serve > > > graphic files. This subclass is named WAPictureServer and is > registered > > > as 'images' in the default dispatcher. As a result, any url in the > form > > > /seaside/images/foo/bar/... is dispatched to this handler via > > > #handleRequest: > > > The corresponding method delegates the request handling to an instance > > > of WAPictureHandler. It parses the url like that : > > > /seaside/images/AAA/BBB.CCC > > > where > > > 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 : > > > > > > bg > > > <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@@-@LP@@M7#5]/!4?;>?/K4;.[)8M+ 4/3<?OW7</''9=>+-9NC$5.W > > > (7.;1:.70:^?2:>K%6/#8=/_7=_O5<N'',8?+:>O/;>>/.97]&U^O&6>S''7_7=?^3/:NG > > > $6_G3;.C#6N#+8"G9A@@@@@@@K@@@@@@T@B4@@@W XBFNYF&^JA&,[N.>\B3OK&C_^J;/ > > > _N?''"*A0RB0ZO\"$D&%T\I;P:OMA+U*/U8162>56L>B0^C1^&L?(]I*0XK/[!K!<S*? > > > [;?#8Y?>Y>O>@ XDI!HVF!8"I" $V#AZO$IFR$!.U%)^XF06[''I6^'' 2!(*N$) > > > ZHN*J&**:,C+*>0,[D]-KV4,*:6.K.1D+:?0LGAA<SE1,_H2\+FD\7N3=CPDMOT5] > > > [VBM''Z6=3]7-?[ENK#9NW%E^#):./+A.;/<OG2<?S0F/_8>_+:@/7>?0@CB!1H,BC@B0 > > > SJ%28L@P@N0@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 css: > > > url("/seaside/images/SlidingDoors/bg.gif") > > > > > > Not sure if this has been done in Squeak. > > > > > > HTH > > > Michel. > > > > > > _______________________________________________ > > Seaside mailing list > > [hidden email] > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Bert Freudenberg
It looks like you did what I was thinking:
SSGenericFrame>>renderStyleTopOn: aStream aStream nextPutAll: '#top {'. aStream nextPutAll: 'width: 780px; height: 50px;'. aStream nextPutAll: 'background: url(' , self styleUrlLogo , ') no-repeat;'. aStream nextPutAll: 'border-bottom: 1px solid black;'. aStream nextPutAll: 'font-size: 9px;'. aStream nextPutAll: 'text-align: right;'. aStream nextPutAll: '}'. SSGenericFrame>>styleUrlLogo ^self session application urlForRequestHandler: (WADocumentHandler document: self class mimeLogo mimeType: self class mimeLogo mimeType fileName: nil) SSFrame>>initialize super initialize. Logo _ self compressJpeg: self formLogo. I'm going to look at Philippe's suggestion FileLibrary. Thanks Bert! Ron Teitelbaum > From: Bert Freudenberg > Sent: Wednesday, October 04, 2006 9:20 AM > > 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 > > squeak? > > > > Ron > > > > > >> -----Original Message----- > >> From: Michel Bany [mailto:[hidden email]] > >> Sent: Wednesday, October 04, 2006 6:16 AM > >> To: [hidden email]; The Squeak Enterprise Aubergines Server - > >> general > >> discussion. > >> 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 > >> "SeasideWebDesignerTool". > >> The idea is to use a subclass of WARequestHandler that is designed to > >> serve > >> graphic files. This subclass is named WAPictureServer and is > >> registered > >> as 'images' in the default dispatcher. As a result, any url in the > >> form > >> /seaside/images/foo/bar/... is dispatched to this handler via > >> #handleRequest: > >> The corresponding method delegates the request handling to an > >> instance > >> of WAPictureHandler. It parses the url like that : > >> /seaside/images/AAA/BBB.CCC > >> where > >> 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 : > >> > >> bg > >> <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@@-@LP@@M7#5]/!4?;>?/K4;.[)8M+ 4/3<?OW7</''9=>+-9NC$5.W > >> (7.;1:.70:^?2:>K%6/#8=/_7=_O5<N'',8?+:>O/;>>/.97]&U^O&6>S''7_7=? > >> ^3/:NG > >> $6_G3;.C#6N#+8"G9A@@@@@@@K@@@@@@T@B4@@@W XBFNYF&^JA&,[N.>\B3OK&C_^J;/ > >> _N?''"*A0RB0ZO\"$D&%T\I;P:OMA+U*/U8162>56L>B0^C1^&L?(]I*0XK/[!K!<S*? > >> [;?#8Y?>Y>O>@ XDI!HVF!8"I" $V#AZO$IFR$!.U%)^XF06[''I6^'' 2!(*N$) > >> ZHN*J&**:,C+*>0,[D]-KV4,*:6.K.1D+:?0LGAA<SE1,_H2\+FD\7N3=CPDMOT5] > >> [VBM''Z6=3]7-?[ENK#9NW%E^#):./+A.;/<OG2<?S0F/_8>_+:@/7>?0@CB!1H,BC@B0 > >> SJ%28L@P@N0@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 > >> css: > >> url("/seaside/images/SlidingDoors/bg.gif") > >> > >> Not sure if this has been done in Squeak. > >> > >> HTH > >> Michel. > > > > > > _______________________________________________ > > Seaside mailing list > > [hidden email] > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Philippe Marschall
0005172: [FIX] FileManagerLibrary Upload File From IE 6.0 http://bugs.impara.de/view.php?id=5172 Hi Philippe, There was an error in upload of FileManagerLibrary for 3.9[7051]-winXP-IE6.0. See link above. Thanks, Ron Teitelbaum _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
2006/10/4, Ron Teitelbaum <[hidden email]>:
> > 0005172: [FIX] FileManagerLibrary Upload File From IE 6.0 > http://bugs.impara.de/view.php?id=5172 > > Hi Philippe, > > There was an error in upload of FileManagerLibrary for > 3.9[7051]-winXP-IE6.0. See link above. Thank you for reporting. I'm trying to understand to issue. If I understood correctly IE delivers file names that look like this: 'c:\temp\afile.txt' (full Windows path) Whereas 'the rest' delivers file names that look like this: 'afile.txt' (path is missing) Now FileDirectory on Windows (or it's subclass) can't deal with file names that are not a full path. Is that correct so far? Unfortunately if I do (FileDirectory on: 'c:\temp\afile.txt') localName on a linux box the answer is: 'c:\temp\afile.txt' This works only on Windows where the file separator is '\'. I refactored the code a bit to do conversion to local names only when needed and committed it as: FileLibrary-pmm.10 I hope this works for you. Cheers Philippe _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Thanks that fixed the problem.
Ron > -----Original Message----- > From: Philippe Marschall [mailto:[hidden email]] > Sent: Wednesday, October 04, 2006 2:44 PM > To: [hidden email]; The Squeak Enterprise Aubergines Server - general > discussion. > Subject: Re: [Seaside] [FIX] for FileManagerLibrary Upload on IE 6.0 > > 2006/10/4, Ron Teitelbaum <[hidden email]>: > > > > 0005172: [FIX] FileManagerLibrary Upload File From IE 6.0 > > http://bugs.impara.de/view.php?id=5172 > > > > Hi Philippe, > > > > There was an error in upload of FileManagerLibrary for > > 3.9[7051]-winXP-IE6.0. See link above. > > Thank you for reporting. I'm trying to understand to issue. If I > understood correctly > > IE delivers file names that look like this: > 'c:\temp\afile.txt' (full Windows path) > Whereas 'the rest' delivers file names that look like this: > 'afile.txt' (path is missing) > > Now FileDirectory on Windows (or it's subclass) can't deal with file > names that are not a full path. > > Is that correct so far? > > Unfortunately if I do > (FileDirectory on: 'c:\temp\afile.txt') localName > on a linux box the answer is: > 'c:\temp\afile.txt' > > This works only on Windows where the file separator is '\'. > > I refactored the code a bit to do conversion to local names only when > needed and committed it as: > FileLibrary-pmm.10 > I hope this works for you. > > Cheers > Philippe _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Michel Bany
Michel Bany wrote:
> [ ... ] > > With the above in place you can now have things like this in your css: > url("/seaside/images/SlidingDoors/bg.gif") Michel -- I've got my VW installation now using a custom servlet setup based on some directions that you wrote up last March for someone on this list.. So, all is fine and dandy and works, except I find now that the SeasideWebDesigner tool can no longer find its image files such as the one mentioned above.. I suspect I need to somehow tell it to look elsewhere or put some sort of setting in my webtools.ini file.. Any ideas on how to proceed? Thanks! _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
On 02 Feb 2007, at 07:07 , Rick Flower wrote: > Michel Bany wrote: >> [ ... ] >> >> With the above in place you can now have things like this in your >> css: >> url("/seaside/images/SlidingDoors/bg.gif") > Michel -- > > I've got my VW installation now using a custom servlet setup based > on some directions that you wrote up last March for someone on this > list.. So, all is fine and dandy and works, except I find now that > the SeasideWebDesigner tool can no longer find its image files such > as the one mentioned above.. I suspect I need to somehow tell it > to look elsewhere or put some sort of setting in my webtools.ini > file.. Any ideas on how to proceed? > > Thanks! Have you tried this url("/seaside/go/images/SlidingDoors/bg.gif") _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Michel Bany wrote:
> > On 02 Feb 2007, at 07:07 , Rick Flower wrote: > >> Michel Bany wrote: >>> [ ... ] >>> >>> With the above in place you can now have things like this in your css: >>> url("/seaside/images/SlidingDoors/bg.gif") >> Michel -- >> >> I've got my VW installation now using a custom servlet setup based on >> some directions that you wrote up last March for someone on this >> list.. So, all is fine and dandy and works, except I find now that >> the SeasideWebDesigner tool can no longer find its image files such >> as the one mentioned above.. I suspect I need to somehow tell it to >> look elsewhere or put some sort of setting in my webtools.ini file.. >> Any ideas on how to proceed? >> >> Thanks! > > Have you tried this > > url("/seaside/go/images/SlidingDoors/bg.gif") > I see this problem when I try to use the SeasideWebDesigner -- I get an error w/ VW complaining that it can't find the above mentioned file (and left.gif if I recall as well).. I'm sure it's because I've re-org'd my site layout and changed the VW config files by following the directions you laid out here : http://archivesat.com/The_Squeak_Enterprise_Aubergines_Server_-_general_discussion./thread233818.htm Anyway, if you've got any ideas of things to try... Thanks! _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |