[Seaside] onClick notifications for check box or multiSelect

jsavidge at texas.net jsavidge at texas.net
Tue May 10 16:28:34 UTC 2011


Despite trying to follow the suggestions I have seen in the discussions and in
the documentation, I can’t seem to get onClick notifications to work on
checkbox(s) or multiSelect.

My goal is to present the user with a list of selections, and when they click
on one of the items in the list, I want to refresh a secondary list with data
that is related to selection they made in the first list.

Attached is a file out for my attempt to get onClick to work on a checkbox by
modifying the WACounter example.

My testing have been in VisualWorks 7.7.1 + Seaside 3.0 - 7, and also in
WebVelocity 1.1. I’ve tried this in Firefox 3.x, 4.x, and Internet Explorer 8.

Here is the method that is included in the attached file-out:

WACounter>>renderContentOn: html
    html form: [
        html heading: count.
        html anchor
            callback: [ self increase ];
            with: '++'.
        html space.
        html anchor
            callback: [ self decrease ];
            with: '--'.
        html checkbox
            with: 'Checkbox test';
            onChange: ( html jQuery ajax serializeThisWithHidden );
            onClick: ( html jQuery ajax callback: [ :selection | Transcript
show: 'checkbox onClick hit.'. ] );
            callback: [ :selection | Transcript show: 'checkbox callback hit.'. ].

Am I missing something?

James T. Savidge, [jsavidge at texas.net], Monday, May 9, 2011

“Don’t worry Bob. Here’s what to do. ... Raise the Exception, walkback, and
nobody gets hurt.”

More information about the seaside mailing list