I used AjaxSelfUpdatingTimerBehavior and it's done. 

Thanks.



________________________________
From: Lurtz Nazgul <lu...@ymail.com>
To: users@wicket.apache.org
Sent: Wed, August 3, 2011 11:36:50 AM
Subject: flush ajaxRequestTarget.appendJavascript

Hi;

When i append jquery progressbar script to AjaxRequestTarget like below

for (int i = 0; i < 101; i++) {

            ajaxRequestTarget.appendJavascript("$(document).ready(function() 
{\n" +
                    "            $(\"#progressbar\").progressbar({ value: " + i 
+ " });\n" +
                    "        });");

             // .... other stuff
}


Wicket sends it to the server, but i need to flush that jquery script code in 
order to work progressbar. 

Any suggestions ?

Thanks.

Reply via email to