[Seaside] General subclassing question with regards to callbacks...

Lukas Renggli renggli at gmail.com
Tue Nov 11 09:45:06 UTC 2008


>        "Override the onClick: method to do what we want..."
>        html tableRow id: 'row' , index asString;
>                class:  (self classForRowNumber: index);
>                script: (self componentScriptOn: index);
>                 onClick: [ self clickBlock ];
>                with: [columns
>                                do: [:ea | self

#onClick: expects a Javascript string or object. #onClick is a HTML
event attribute. You need to wrap the contents of your cells into an
anchor that uses the block as a #callback:, or restort to JavaScript
(AJAX).

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside mailing list