[Seaside] What's the difference and why??
Brad Fuller
brad at sonaural.com
Wed Mar 1 00:19:56 UTC 2006
Rick Flower wrote:
> Brian Brown wrote:
>> In your case, I wouldn't use a WATask.
> That's kinda what I thought as well.. I guess if I'm not going to use
> a WATask, I'd need to code up the renderContentOn: method to not only
> display my links near the top of the page, but also display the login
> form crud as well.. In MyWebApp, can I do something like this :
>
> renderContentOn: html
> html divClass: 'sidebar' with: [html render: menuArea].
> html divClass: 'contentarea' with: [html render: mainPage].
> html divClass: 'loginarea' with: [html render: loginArea].
>
> where loginArea is an instance of a Login class
you can also do, for instance:
html divClass: 'sidebar' with: [self loginArea].
if
initialize
loginArea := loginClass new.
loginArea
^loginArea.
But, is that not a good way to go?
More information about the Seaside
mailing list