[Seaside] What's the difference and why??
rleon at insario.com
Wed Mar 1 00:57:15 UTC 2006
You need to return loginArea from children.
^Array with: loginArea
> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org
> [mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf
> Of Rick Flower
> Sent: Tuesday, February 28, 2006 5:33 PM
> To: The Squeak Enterprise Aubergines Server - general discussion.
> Subject: Re: [Seaside] What's the difference and why??
> Brad Fuller wrote:
> >> 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?
> > _______________________________________________
> You've got me on that one -- for me, the first one seems to
> be easier to understand for me anyway.. Perhaps someone else
> can chime in the validity of the bottom one..
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
More information about the Seaside