Character ^ added to javascript blocks in Ajax response

2014-04-01 Thread Rakesh A
Hi,
I am using Wicket v6.12.0, I observed that ^ character is getting added at
places in javascript blocks in Ajax response. I observed that its for Ajax
attributes with supports array like 'pre', 'bh', 'dep', etc.

Example:
pre:[function(attrs){return false;}]^
bh:[function(attrs){if (attrs.event.shiftKey) {
attrs.event.preventDefault(); }}]^
dep:[function(attrs){return {'ctrlKey' : attrs.event.ctrlKey, 'shiftKey' :
attrs.event.shiftKey}}]^

Is it being added by Wicket?

I tried by adding -Djavax.servlet.request.encoding=UTF-8
-Dfile.encoding=UTF-8 options to my tomcat startup, thinking its character
encoding issue, but that didn't help!

Thanks,
Rakesh.A


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Character-added-to-javascript-blocks-in-Ajax-response-tp4665190.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



Re: Character ^ added to javascript blocks in Ajax response

2014-04-01 Thread Martin Grigorov
Hi,

Yes. It is added by Wicket and is removed by Wicket before actual
processing.
This character is used as an escape character, so CDATA is not prematurely
ended.

Martin Grigorov
Wicket Training and Consulting


On Tue, Apr 1, 2014 at 8:43 AM, Rakesh A iamrakes...@rediffmail.com wrote:

 Hi,
 I am using Wicket v6.12.0, I observed that ^ character is getting added at
 places in javascript blocks in Ajax response. I observed that its for Ajax
 attributes with supports array like 'pre', 'bh', 'dep', etc.

 Example:
 pre:[function(attrs){return false;}]^
 bh:[function(attrs){if (attrs.event.shiftKey) {
 attrs.event.preventDefault(); }}]^
 dep:[function(attrs){return {'ctrlKey' : attrs.event.ctrlKey, 'shiftKey'
 :
 attrs.event.shiftKey}}]^

 Is it being added by Wicket?

 I tried by adding -Djavax.servlet.request.encoding=UTF-8
 -Dfile.encoding=UTF-8 options to my tomcat startup, thinking its character
 encoding issue, but that didn't help!

 Thanks,
 Rakesh.A


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Character-added-to-javascript-blocks-in-Ajax-response-tp4665190.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