[Seaside] trying to use WASelectTag and its not working....

Boris Popov, DeepCove Labs (SNN) boris at deepcovelabs.com
Fri Sep 10 11:49:47 UTC 2010


Do you expect it to be called on change or on form submit? If the
former, you need #beSubmitOnChange (or use proper JS library to wire
this event), if the latter, please post a complete example of a form.

Regards,

-Boris

-- 
DeepCove Labs Ltd.
+1 (604) 689-0322
4th floor, 595 Howe Street
Vancouver, British Columbia
Canada V6C 2T5
http://tinyurl.com/r7uw4

PacNet Services (Europe) Ltd.
+353 (0)61 714-360
Shannon Airport House, SFZ
County Clare, Ireland
http://tinyurl.com/y952amr

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.


-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Lawson
English
Sent: 10 September 2010 12:46
To: Seaside - general discussion
Subject: [Seaside] trying to use WASelectTag and its not working....

  Why isn't this working?




Basically I'm trying to let people browse (read only) the code for the
page component they are looking at, but its not working. The callback is
never called.

#createText: value
"obtain source code for selected method"
     self sourceCode: self sourceCodeAt: value

#renderContentOn: html
"..."
html text: 'source code'.

     html select
             list:  (self class selectors);
         selected: #renderContentOn: ;
         callback: [:value | self createText: value     ].
              html break.

  html textArea
          value: self sourceCode;
         rows: 30;
         columns: 60.
         html break.

_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the seaside mailing list