google-code-export / jqwicket

Automatically exported from code.google.com/p/jqwicket
1 stars 0 forks source link

Native Ajax code dont understand JQWicket Notifier CDATA... #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Take the simple version of Notifier 
2.Add an AbstractAjaxTimerBehavior to call the notifier to creat a new 
notification each ten seconds...
3.Exception in AJAX debuger

add(notifier);

add(new AbstractAjaxTimerBehavior(Duration.seconds(10)) {

protected void onTimer(AjaxRequestTarget target) {
notifier.create(target, 
"Test Notification", 
"You got updated, fade in 5 seconds.");
}
});
}

final NotifierWebMarkupContainer notifier = new 
NotifierWebMarkupContainer("notifier1");

What is the expected output? What do you see instead?
Show the notification balloon

What version of the product are you using? On what operating system?
Exception in AJAX Debuger

<?xml version="1.0" encoding="UTF-8"?>
<ajax-response>
<evaluate><![CDATA[$("#notifier116").notify("create",{title:"Test 
Notification", text:"You got updated, fade in 5 
seconds."});]]></evaluate><evaluate>

<![CDATA[setTimeout("var 
wcall=wicketAjaxGet('../page?5-1.IBehaviorListener.2-',function() { 
}.bind(this),function() { }.bind(this));", 10000);]]></evaluate>

</ajax-response>

INFO: Response parsed. Now invoking steps...
ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: 
TypeError: template is undefined

Please provide any additional information below.

Original issue reported on code.google.com by hn.sgmedia on 29 Feb 2012 at 8:29

GoogleCodeExporter commented 9 years ago
Sorry, it work now! My fault in Wicket settings!

Original comment by hn.sgmedia on 29 Feb 2012 at 8:55