Hi Dan,
Thank you for your reply, I had resolved it by writing the below code
get("body").add(new AjaxEventBehavior("onload") {
                        /**
                                         * 
                                         */
                        private static final long serialVersionUID = 
5189233126299039152L;

                        protected void onEvent(AjaxRequestTarget target) {

                                target
                                                .appendJavascript("alert(123)");
}

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-add-Javascript-function-in-wicket-1-4-Page-tp4171520p4171765.html
Sent from the Users forum mailing list archive at Nabble.com.

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

Reply via email to