You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Vytautas Čivilis <vy...@gmail.com> on 2009/07/29 18:06:11 UTC

AjaxEditableLabel doesn't work in IE7

Hi.

I'm testing AjaxEditableLabel as well as AjaxEditableMultiLineLabel
using wicket rc7 now, but the same problem initially occurred with rc3.

Mysteriously, the ajax call isn't working with IE7, although it's
working with IE6, firefox etc.

Is it possible this is due to crippled IE7 installation, as I'm using
http://tredosoft.com/IE7_standalone on Parallels, and I have no apparent
chance to test on real windows box.


I get the following error in wicket ajax debug window, which tells
something about Automation server can't create object:

INFO: Initiating Ajax GET request on
?wicket:interface=:1:m2ChoiceContainer:m2author:label::IBehaviorListener:0:&random=0.2440050199589187
INFO: Invoking pre-call handler(s)...
INFO: Received ajax response (2769 characters)
INFO:
<?xml version="1.0"
encoding="UTF-8"?><ajax-response><header-contribution encoding="wicket1"
><![CDATA[<head xmlns:wicket="http://wicket.apache.org"><script
type="text/javascript"
src="resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js"></script>
<script type="text/javascript"
src="resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js"></script>
<script type="text/javascript"
src="resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js"></script>
<script type="text/javascript"
id="wicket-ajax-debug-enable"><!--/*--><![CDATA[/*><!--*/
wicketAjaxDebugEnable=true;
/*-->]^]^>*/</script>

</head>]]></header-contribution><component id="m2author9"
><![CDATA[<span id="m2author9"><input type="text" value="x"
name="m2ChoiceContainer:m2author:editor" id="editore" onblur="{var
wcall=wicketAjaxGet('?wicket:interface=:1:m2ChoiceContainer:m2author:editor::IActivePageBehaviorListener:0:-1&wicket:ignoreIfNotActive=true&save=true&'+this.name+'='+wicketEncode(this.value),null,null,
function() {return Wicket.$('editore') != null;}.bind(this));; return
false;}" onkeypress="if (Wicket.Browser.isSafari()) { return; }; var
kc=wicketKeyCode(event); if (kc==27) {var
wcall=wicketAjaxGet('?wicket:interface=:1:m2ChoiceContainer:m2author:editor::IActivePageBehaviorListener:0:-1&wicket:ignoreIfNotActive=true&save=false',null,null,
function() {return Wicket.$('editore') != null;}.bind(this));; return
false;} else if (kc!=13) { return true; } else {var
wcall=wicketAjaxGet('?wicket:interface=:1:m2ChoiceContainer:m2author:editor::IActivePageBehaviorListener:0:-1&wicket:ignoreIfNotActive=true&save=true&'+this.name+'='+wicketEncode(this.value),null,null,
function() {return Wicket.$('editore') != null;}.bind(this));; return
false;}" onkeydown="if (!Wicket.Browser.isSafari()) { return; }; var
kc=wicketKeyCode(event); if (kc==27) {var
wcall=wicketAjaxGet('?wicket:interface=:1:m2ChoiceContainer:m2author:editor::IActivePageBehaviorListener:0:-1&wicket:ignoreIfNotActive=true&save=false',null,null,
function() {return Wicket.$('editore') != null;}.bind(this));; return
false;} else if (kc!=13) { return true; } else {var
wcall=wicketAjaxGet('?wicket:interface=:1:m2ChoiceContainer:m2author:editor::IActivePageBehaviorListener:0:-1&wicket:ignoreIfNotActive=true&save=true&'+this.name+'='+wicketEncode(this.value),null,null,
function() {return Wicket.$('editore') != null;}.bind(this));; return
false;}"/></span>]]></component><evaluate><![CDATA[{ var
el=wicketGet('editore');   if (el.createTextRange) {      var v =
el.value; var r = el.createTextRange();      r.moveStart('character',
v.length); r.select(); }
}]]></evaluate><evaluate><![CDATA[Wicket.Focus.setFocusOnId('editore');]]></evaluate></ajax-response>
ERROR: Wicket.Ajax.Call.failure: Error while parsing response:
Automation server can't create object
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...


Thanks,
cvl

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


Re: AjaxEditableLabel doesn't work in IE7

Posted by "ivilis <vytautas.civilis@gmail.com>" <Vytautas>.
good news, it doesn't.
thanks a lot Mathias :D

cvl

Mathias Nilsson wrote:
> What about the wicket examples. Does this work for you?
> 
> http://www.wicket-library.com/wicket-examples/ajax/editable-label
> http://www.wicket-library.com/wicket-examples/ajax/editable-label 
> 
> I've tried it in IE7 and it works fine.

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


Re: AjaxEditableLabel doesn't work in IE7

Posted by Mathias Nilsson <wi...@gmail.com>.
What about the wicket examples. Does this work for you?

http://www.wicket-library.com/wicket-examples/ajax/editable-label
http://www.wicket-library.com/wicket-examples/ajax/editable-label 

I've tried it in IE7 and it works fine.
-- 
View this message in context: http://www.nabble.com/AjaxEditableLabel-doesn%27t-work-in-IE7-tp24722482p24723733.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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