[Seaside-dev] Issue 247 in seaside: WAValidationDecoration>>#validate does not work on all platforms

codesite-noreply at google.com codesite-noreply at google.com
Fri Nov 28 15:52:29 UTC 2008


Comment #2 on issue 247 by WeybridgeWay: WAValidationDecoration>>#validate  
does not work on all platforms
http://code.google.com/p/seaside/issues/detail?id=247

I've investigated exception handling in some depth to implement it in  
GemStone and I don't recall any rules about
returning from a handler. It should just be a block like any other  
Smalltalk block. Good practice, however, is to
explicitly return/resume at the end. I would, therefore, consider the  
following if you wanted to avoid an explicit
method return (^) in the handler:

validate: anObject
	^[ validationBlock value: anObject.
	message contents: nil.
	true ]
		on: self exceptionClass
		do: [ :exception |
			message contents: exception messageText.
			exception return: false  ].

James Foster

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


More information about the seaside-dev mailing list