[Seaside] Generating <form> without extra fields

Boris Popov boris at deepcovelabs.com
Fri Jul 4 18:18:43 UTC 2008


I had run across a case where I needed to generate a form that didn't
have built-in helpers for _s and _k, so I ended up with the following,

Smalltalk.Seaside defineClass: #WABasicFormTag
	superclass: #{Seaside.WAFormTag}
	indexedType: #none
	private: false
	instanceVariableNames: ''
	classInstanceVariableNames: ''
	imports: ''
	category: ''

Seaside.WABasicFormTag>>after
 "This method is intentionally empty"

Seaside.WARenderCanvas>>basicForm
  ^self brush: WABasicFormTag new.

Obviously, this could be better suited to become a feature of standard
WAFormTag, but this is a simpler extension maintenance-wise for me. Was
hoping some form of this could be considered for inclusion in base.

Thanks!

-Boris

-- 
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

boris at deepcovelabs.com

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.



More information about the seaside mailing list