Quantcast

Calling wicket from javascript

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Calling wicket from javascript

jcf1974
Hello,
 I'm new in this forum, and i love wicket!!!
My question is:
What wrong with this code?

           @Override
            protected IAjaxCallDecorator getAjaxCallDecorator() {
                return new AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) {
                    private static final long serialVersionUID = 1L;

                    @Override
                    public CharSequence preDecorateScript(CharSequence script) {
                        return "function callWicket(){" + script + "}; $('.search-div').slideDown('slow',        callWicket());";
                    }
                };
            }
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Calling wicket from javascript

aksarben
Hard to say without details. Are you not getting the behavior you expect
(and what is that behavior?). Are you getting an error message?

"RAM /abr./: Rarely Adequate Memory."



From:   jcf1974 <[hidden email]>
To:     [hidden email]
Date:   05/07/2012 07:07 AM
Subject:        Calling wicket from javascript



Hello,
 I'm new in this forum, and i love wicket!!!
My question is:
What wrong with this code?

           @Override
            protected IAjaxCallDecorator getAjaxCallDecorator() {
                return new
AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) {
                    private static final long serialVersionUID = 1L;

                    @Override
                    public CharSequence preDecorateScript(CharSequence
script) {
                        return "function callWicket(){" + script + "};
$('.search-div').slideDown('slow',        callWicket());";
                    }
                };
            }


--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Calling-wicket-from-javascript-tp4614627.html

Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




**

This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient.  Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law.  If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.
**
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Calling wicket from javascript

jcf1974
I tried to call wicket from javascript without using a wicket behaviour,
 and the error/warning i get is  "wcall is not defined".


Loading...