[ 
https://issues.apache.org/jira/browse/WICKET-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530532
 ] 

Adam A. Koch commented on WICKET-1014:
--------------------------------------

Wicket Ajax debug window output:
INFO: 
INFO: Initiating Ajax GET request on 
?wicket:interface=:0:name:label::IBehaviorListener:0:-1&random=0.6403308751835941
INFO: Invoking pre-call handler(s)...
INFO: Received ajax response (2077 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.AbstractDefaultAjaxBehavior/wicket-ajax.js"></script>
 
<script type="text/javascript" 
id="wicket-ajax-debug-enable"><!--/*--><![CDATA[/*><!--*/
wicketAjaxDebugEnable=true;
/*-->]^]^>*/</script>

<script type="text/javascript" 
src="resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js"></script>
 
</head>]]></header-contribution><component id="name1" ><![CDATA[<span 
wicket:id="name" id="name1"><wicket:panel><select onkeypress="var 
kc=wicketKeyCode(event); if (kc==27) 
{wicketAjaxGet('?wicket:interface=:0:name:editor::IBehaviorListener:0:-1&wicket:ignoreIfNotActive=true&save=false');
 return true;} else if (kc!=13) { return true; } else 
{wicketAjaxGet('?wicket:interface=:0:name:editor::IBehaviorListener:0:-1&wicket:ignoreIfNotActive=true&save=true&'+this.name+'='+wicketEncode(this.value));
 return false;}" wicket:id="editor" name="name:editor" 
onchange="{wicketAjaxGet('?wicket:interface=:0:name:editor::IBehaviorListener:0:-1&wicket:ignoreIfNotActive=true&save=true&'+this.name+'='+wicketEncode(this.value));
 return true;}" 
onblur="{wicketAjaxGet('?wicket:interface=:0:name:editor::IBehaviorListener:0:-1&wicket:ignoreIfNotActive=true&save=true&'+this.name+'='+wicketEncode(this.value));
 return false;}" id="editor3">
<option selected="selected" value="0">Arnold</option>
<option value="1">Alex</option>
<option value="2">Adam</option>
</select></wicket:panel></span>]]></component><evaluate><![CDATA[{ var 
el=wicketGet('editor3');  el.focus();   if (el.createTextRange) {      var v = 
el.value; var r = el.createTextRange();      r.moveStart('character', 
v.length); r.select(); } 
}]]></evaluate><evaluate><![CDATA[Wicket.Focus.setFocusOnId('editor3');]]></evaluate></ajax-response>
INFO: Response parsed. Now invoking steps...
INFO: focus set on editor3 from serverside
INFO: Response processed successfully.
INFO: Invoking post-call handler(s)...
INFO: focus set on editor3
INFO: Calling focus on editor3
INFO: 
INFO: Initiating Ajax GET request on 
?wicket:interface=:0:name:editor::IBehaviorListener:0:-1&wicket:ignoreIfNotActive=true&save=true&name:editor=0&random=0.32760623773406166
INFO: Invoking pre-call handler(s)...
INFO: focus set on editor3
INFO: Received ajax response (1088 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.AbstractDefaultAjaxBehavior/wicket-ajax.js"></script>
 
<script type="text/javascript" 
id="wicket-ajax-debug-enable"><!--/*--><![CDATA[/*><!--*/
wicketAjaxDebugEnable=true;
/*-->]^]^>*/</script>

<script type="text/javascript" 
src="resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js"></script>
 
</head>]]></header-contribution><component id="name1" ><![CDATA[<span 
wicket:id="name" id="name1"><wicket:panel><span wicket:id="label" onclick="var 
wcall=wicketAjaxGet('?wicket:interface=:0:name:label::IBehaviorListener:0:-1', 
function() { }.bind(this), function() { }.bind(this));" 
id="label2"><p>Arnold</p></span></wicket:panel></span>]]></component><evaluate><![CDATA[window.status='';]]></evaluate></ajax-response>
INFO: Response parsed. Now invoking steps...
INFO: Response processed successfully.
INFO: Invoking post-call handler(s)...
INFO: Couldn't set focus on  not on the page anymore

> AjaxEditableChoiceLabel doesn't work in IE 6
> --------------------------------------------
>
>                 Key: WICKET-1014
>                 URL: https://issues.apache.org/jira/browse/WICKET-1014
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.3.0-beta3
>         Environment: Wicket 1.3.0-Beta3
> Windows XP SP 2
> Internet Explorer 6.0.2900.2180
>            Reporter: Adam A. Koch
>         Attachments: AjaxEditableChoiceLabelPage.html, 
> AjaxEditableChoiceLabelPage.java
>
>
> When the AjaxEditableChoiceLabel is clicked on, it turns into a drop down as 
> expected, but then, without any other user input (clicking, etc.) it changes 
> back to a label before there's a chance to change the value. It seems like it 
> might be an issue with the focus, but I haven't been able to pin it down yet.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to