Hi there,

   Actually I have a behavior which implemented like the following
        
        @Override
        public void onRendered (Component component)
        {
                String scr = null;
                
                if (isAjaxRequest ())
                {
                        AjaxRequestTarget t = 
(AjaxRequestTarget)RequestCycle.get
().getRequestTarget ();
                        
                        if ((scr = getStartupJavascript ()) != null) {
                                t.appendJavascript (scr); // <---- WORKS FINE
                        }
                        
                        if ((scr = getCleanupJavascript ()) != null) {
                                t.prependJavascript (scr); // <---- IS 
DEFINITELY CALLED! I SENDS
JUST 'ALERT (1);'
                        }
                }
        }

   And I cannot find the script it is supposed to send to a browser in
the wicket ajax console. Am I doing something wrong?

   Vitaly

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to