Never mind - not sure what I was thinking.... needed to name the JS
event properly.

Michael

-----Original Message-----
From: Michael Mehrle [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 20, 2008 1:06 PM
To: users@wicket.apache.org
Subject: AjaxEventBehavior never being called

I've got an inner subclass of Radio:

private class FooRadio extends Radio {

            public FooRadio (String id, IModel model) {
                super(id, model);
                setOutputMarkupId(true);
                add(new AjaxEventBehavior(new
StringBuffer(id).append("onChange").toString()) {
                
                    @Override
                    protected void onEvent(AjaxRequestTarget target) {

                        group.processInput();               
                    }    
                });
            }    
        }

For some reason onEvent is never being called. When I tag the event
behavior to a vanilla Radio component it's being called. Am I forgetting
something?

Michael
        


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to