6.2 news: page composing/streaming state

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

6.2 news: page composing/streaming state

Janko Mivšek
Dear all,

Aida 6.2 branch is already open and first new thing will be introduction
of Page/Widget rendering states.

As you know Aida has a two step rendering of pages:

  1.step: page is composed from web elements
  2.step: page is streamed as HTML back to web client

There are also two methods which element has for those two steps:

  1.step: printWebPageFor: aRequest on: aSession
  2.step: printHTMLPageOn: aStream for: aRequest on: aSession

There are many advantages of that two-step model, most notable are
post-composing/pre-streaming actions, which you can call by overriding
the printHTMLPageTo: method by adding thos method calls at the start.

In 6.2 we can test in which step is currently a page by checking its
state, which can be

        #composing
        #streaming
        #finished

There are methods #isComposing, #isStreaming and #isFinished.

Because a WebPage is a subclass of WebWindow which is subclass of
WebWidget, you can test this state in widgets too. State and above
mentioned methods are namely implemented in a WebWidget.

Best regards
Janko

--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida