Hi,

Suppose I have BlinkBehaviour 

public static class BlinkBehaviour extends Behavior {
        @Override
        public void renderHead(Component component, IHeaderResponse
response) {
            AjaxRequestTarget target =
component.getRequestCycle().find(AjaxRequestTarget.class);
            if (target != null) {
                target.prependJavaScript("notify|jQuery('#" +
component.getMarkupId() + "').fadeOut(400, notify);");
               
target.appendJavaScript("jQuery('#"+component.getMarkupId()+"').fadeIn(400);");
            }
        }
    }

If I add it twice to a control and update the control via ajax
6.7.0-SNAPSHOT will yield error:

ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript:
SyntaxError: Unexpected token ), text: f = function(notify)
{jQuery('#version2').fadeOut(400,
notify);})();(function(){notify|jQuery('#version2').fadeOut(400, notify);};



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Generating-wrong-JavaScript-on-ajax-updated-tp4657921.html
Sent from the Users forum mailing list archive at Nabble.com.

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

Reply via email to