Generating <form> without extra fields

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Generating <form> without extra fields

Boris Popov, DeepCove Labs (SNN)
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

[hidden email]

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.

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Generating <form> without extra fields

Lukas Renggli