[Seaside] Exceptions handling

Andrei N.Sobchuck andrei.sobchuck at gmail.com
Tue Mar 22 22:11:17 CET 2005


Hi!

I'm exploring seaside/VW. 
How ensure/ifCurtailed work in seaside/VW?

WAClosureTest on 'go with ensure' prints:
'ensure' 
'a 1' 'ensure' 
'b 2' 'ensure' 
'c 3' 'ensure'

Is that right?

I implemented the following code:

html 
  submitButtonWithAction: 
    [[1/0] ensure: [Transcript show: 'err'; cr]] 
  text: 'tst'

#ensure: block is executed only if 'debug' link is pressed. 
I wonder why #ensure: block is called 4 times in 1st case
and only 1 time in second?

-- 
Andrei N.Sobchuck
JabberID: andreis at jabber.ru. ICQ UIN: 46466235.



More information about the Seaside mailing list