[Seaside] SULibrary and File Serving

Richard Eng richard.eng at rogers.com
Sat Oct 6 22:20:24 UTC 2007


Hi, Philippe. Several comments:

First, I¹m no longer using Seaside 2.8. Damien¹s beta dev image seems to be
broken because I can¹t get it to work on Linux (it works just fine locally
on my Vista machine, however). So I¹m using the last Squeak 3.9/Seaside 2.7
stable dev image from Damien (dated August).

Second, I¹ve done as you suggested, writing to disk all the files from both
SULibrary and WAStandardFiles (these are the only two libraries specified in
my app config). However, it doesn't help--the problem is still there.

Since the app is configured to serve files from /home/richard/seaside, I put
the SULibrary files in /home/richard/seaside/files/SULibrary/. When this
didn't work, I tried putting them in /var/www/seaside/files/SULibrary/.
Again, no luck.

I've tried several other permutations but my Seaside app stubbornly refuses
to recognize them.

Complicating matters, either Apache or Seaside is doing some kind of weird
caching that makes it very difficult to determine whether I've got the right
solution. I found this to be especially true when trying to get Apache file
serving to work with Seaside. After going around in circles with various
attempts, Apache file serving suddenly started working for no apparent
reason. Frickin' weird!


Third, on an unrelated note, I've also noticed that #setFocus on text input
fields doesn't work over the Internet (via Apache), either. So I'm
experiencing a LOT of Linux server deployment problems.

Regards,
Richard

-------
It's at /seaside/files/SULibrary/whatever.js I think that should
answer your questions. Note that the URLs are static so they could
very well also be served by Apache. Given you have a recent version of
Seaside 2.8 you can esily file out all the files by:
- go to /seaside/config
- configure the files application
- configure the SULibrary application
- push 'write to disk'
You should then have a folder named SULibrary in the folder of your
Smalltalk image. There all the JS files of SULibrary should reside.

Cheers
Philippe




More information about the seaside mailing list