[aida] WebStye (was stupid question)

Janko Mivšek janko.mivsek at eranova.si
Tue Oct 16 22:15:22 CEST 2007

Hi Nicolas,

>> Start with WebStyle>>pageFrameWith:title:
>> The WebStyle catches the doesNotUnderstand from WebApplication when your viewMain method sends self pageFrameWith:title:
> Thanks a lot Dirk, now it's clearer to me :)
> I think the main issue here is that I'm still thinking the Seaside
> way...

Well, this redirection is strange on first sight for every Smalltalker 
too, but with a bit of explanation you can understand the reason behind: 
  a support for another separation between content and style - between 
HTML and CSS. CSS support (and style support in general, like "framing" 
of page with above mentioned method) is therefore delegated to WebStyle 
and its subclasses.

Another neat feature is that you can change styles on runtime, simply by 
changing style in AIDASite.

Third reason: that way you can host a same application to many customers 
at once, with different style for each. That way you can simply 
customize you app to customer wishes, but still run all of them from the 
same image.

But WebStyle don't hold only CSS, but also images and JS code. Images 
are stored in methods (so called method images). The same goes with 
JavaScript code. This is similar to WAFileLibrary in Seaside.

And I'm extending WebStyle to support Joomla templates ...

Best regards

>> -----Oorspronkelijk bericht-----
>> Van: aida-bounces na aidaweb.si [mailto:aida-bounces na aidaweb.si] Namens nicolas petton
>> Verzonden: dinsdag 16 oktober 2007 19:53
>> Aan: AIDA/Web general discussion list
>> Onderwerp: Re: [aida] Stupid question
>> Le mardi 16 octobre 2007 à 15:10 +0200, Janko Mivšek a écrit :
>>> Hi Nicolas,
>> Hi Janko
>>> nicolas petton wrote:
>>>> I've got a stupid question... where is the code of aidademo site ?
>>>> Sorry, I cannot find it.
>>> Do you mean a code, which run what is shown  when you start a demo site?
>> Yes
>>> First page is from WebDiscussions/WebDiscussionsApp (in Aida-Parts), 
>>> then there is WebDemoApp for demos, in same category, and WebAdminApp 
>>> from Aida-Admin.
>> Thanks, I saw it, but I mean the main part of the site (ie the header, the sidebar on the left, stylesheet, etc). Does it make part of the demo ?
>> I'm asking this because in the tutorial the new site is in fact a part of the demo (even if I write "self add: e", the css is still there).
>>> For "blast from the past" you can also look at WebSecurityManagerApp 
>>> with a really old code, back to 1996 :)
>> Cheers,
>> Nicolas
>>> Best regards
>>> Janko
>> --
>> Nicolas Petton
>> http://nico.bioskop.fr
>>              ___
>>            ooooooo
>>           OOOOOOOOO
>>          |Smalltalk|
>>           OOOOOOOOO
>>            ooooooo
>>             \   /
>>              [|]
>> --------------------------------
>> Ma clé GPG est disponible ici :
>> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE788C34D
>> _______________________________________________
>> Aida mailing list
>> Aida na aidaweb.si
>> http://lists.aidaweb.si/mailman/listinfo/aida
>> ------------------------------------------------------------------------
>> _______________________________________________
>> Aida mailing list
>> Aida na aidaweb.si
>> http://lists.aidaweb.si/mailman/listinfo/aida

Janko Mivšek
Smalltalk Web Application Server

More information about the Aida mailing list