I have created an anonymous innner class of AjaxFallbackLink this overrides
onClick and getAjaxCallDecorator as such:
            
...
            @Override
            protected IAjaxCallDecorator getAjaxCallDecorator() {
                return  new AjaxCallDecorator() {
                    private static final long serialVersionUID = 1L;
                    @Override
                    public CharSequence decorateScript(CharSequence pScript)
{
                        return  "saveAllForms();" + pScript;
                    }                    
                };
            }

            @Override
            public void onClick(AjaxRequestTarget pArg0) {
                // update selected state of creatives to false
                ....

this results in HTML that looks like:

onclick="saveAllForms();var
wcall=wicketAjaxGet('?wicket:interface=:7:controlbar:right:3:item:1:IBehaviorListener:0:',null,null,
function() {return Wicket.$$(this)}.bind(this));return !wcall;"

The problem is, the onClick() method does not seem to be getting called
(does not stop in eclipse debugger at the breakpoint, and observed behavior
is as if it is not being called).  So my question is, what am I doing wrong? 
I expected the onClick() method to be called.  Is it possible for a
javascript function to fail in such a way that the rest of the script would
not be called?  I put an alert() at the end of the saveAllForms() function
to be sure it was getting that far and it was. [I'm using 1.3 beta4, BTW]


-- 
View this message in context: 
http://www.nabble.com/Help-understaning-AjaxCallDecorator-problem-tf4760426.html#a13614038
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to