[Seaside] using WALoginDialog
Yar Hwee Boon
hboon at motionobj.com
Fri Apr 1 17:02:44 CEST 2005
On 01-Apr-05, at PM 10:25, Tibor Blenessy wrote:
> I'm trying to build application with secure area, where I need login
> dialog. I have something like this
>
> SISMain>>renderContentOn:
>
> renderContentOn: html
>
> username := self call: (WALoginDialog new authenticator: (SISLogin
> new)).
> (username isNil)
> ifTrue: [html text: 'Must log in']
> ifFalse: [html text: 'Welcome!'].
You shouldn't send #call: in #renderContentOn:. What I do is to put
more or less the same code into a WATask subclass instead.
--
HweeBoon
MotionObj
(65) 6764-9774
More information about the Seaside
mailing list