11 Nov 08:28
General subclassing question with regards to callbacks...
From: Richard E. Flower <rickf <at> ca-flower.com>
Subject: General subclassing question with regards to callbacks...
Newsgroups: gmane.comp.lang.smalltalk.squeak.seaside
Date: 2008-11-11 07:28:12 GMT
Subject: General subclassing question with regards to callbacks...
Newsgroups: gmane.comp.lang.smalltalk.squeak.seaside
Date: 2008-11-11 07:28:12 GMT
Hi all... I'm stumped once again -- it's probably just another ST thing that is throwing me for a loop.. Anyway, I've got a generic 'edit/add' widget that shows a list of records and then depending on the personality selected (by the parent menu), it invokes either the vanilla 'add' class to draw the form for a new record OR we render the 'editSelector' class who squirrels away the 'clickBlock' for later (in case the user clicks/selects a particular user). So, my initialize method and friends for the EditSelector class looks like : EditSelector>>initialize super initialize. userSelector := Admin_User_RecordSelector on: self. userEditor := Admin_User_EditExecutor on: self. self userSelector clickBlock: [ : each | self userEditor user: each. self call: self userEditor. ]. EditSelector>>renderContentOn: html html render: userSelector. While the above 'clickBlock' is valid, how its used elsewhere is not. See use of onClick: below and above.. I would like to be able to determine once the user presses on(Continue reading)
RSS Feed