Re: Wicket 6: Using AutoCompleteBehavior with other behaviors
Hi all, I have logged the required fixes for WICKET-4990 in jira. Regards, James james yong wrote Hi Sven, WICKET-4990 is for problem 1. So I raised a jira issue for problem 2, together with its solution. WICKET-4998. Regards, James Sven Meier wrote Hi James, please attach that info to WICKET-4990. Thanks Sven On 01/22/2013 07:07 AM, james yong wrote: Hi, To rectify problem 2, I changed the following in wicket-autocomplete.js, Wicket.Event.add(obj,keypress,function(jqEvent){ if(Wicket.Event.keyCode(jqEvent)===KEY_ENTER){ if(selected-1||hidingAutocomplete===1){ hidingAutocomplete=0; jqEvent.stopImmediatePropagation(); --changed from jqEvent.stopPropagation(); Regards, James james yong wrote Hi, Now migrating a working project from wicket version 1.4 to 6.4. I have a text field that uses the following behaviors: A. AjaxFormComponentUpdatingBehavior(onchange); B. AutoCompleteBehavior; and C. AjaxFormComponentUpdatingBehavior(onkeypress). Say I enter an letter 'U' into the text field, and an auto-suggest list pops up. There are 2 problems which is not seen in wicket 1.4: 1) When I select an item (e.g. USD) from the auto-suggest list using a mouse, the onchange event from behavior A is fired twice. The 1st onchange event is for 'U' and the 2nd onchange event is for 'USD'. Can I prevent the 1st onchange event from happening? 2) When I select an item (e.g. USD) from the auto-suggest list using the Enter keypress, an onkeypress event is fired by behavior C. Can I prevent this onkeypress event from happening? Regards, James -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Using-AutoCompleteBehavior-with-other-behaviors-tp4655495p4655619.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Using-AutoCompleteBehavior-with-other-behaviors-tp4655495p4655719.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: Wicket 6: Using AutoCompleteBehavior with other behaviors
Hi, To rectify problem 2, I changed the following in wicket-autocomplete.js, Wicket.Event.add(obj,keypress,function(jqEvent){ if(Wicket.Event.keyCode(jqEvent)===KEY_ENTER){ if(selected-1||hidingAutocomplete===1){ hidingAutocomplete=0; jqEvent.stopImmediatePropagation(); --changed from jqEvent.stopPropagation(); Regards, James james yong wrote Hi, Now migrating a working project from wicket version 1.4 to 6.4. I have a text field that uses the following behaviors: A. AjaxFormComponentUpdatingBehavior(onchange); B. AutoCompleteBehavior; and C. AjaxFormComponentUpdatingBehavior(onkeypress). Say I enter an letter 'U' into the text field, and an auto-suggest list pops up. There are 2 problems which is not seen in wicket 1.4: 1) When I select an item (e.g. USD) from the auto-suggest list using a mouse, the onchange event from behavior A is fired twice. The 1st onchange event is for 'U' and the 2nd onchange event is for 'USD'. Can I prevent the 1st onchange event from happening? 2) When I select an item (e.g. USD) from the auto-suggest list using the Enter keypress, an onkeypress event is fired by behavior C. Can I prevent this onkeypress event from happening? Regards, James -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Using-AutoCompleteBehavior-with-other-behaviors-tp4655495p4655619.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: Wicket 6: Using AutoCompleteBehavior with other behaviors
Hi James, please attach that info to WICKET-4990. Thanks Sven On 01/22/2013 07:07 AM, james yong wrote: Hi, To rectify problem 2, I changed the following in wicket-autocomplete.js, Wicket.Event.add(obj,keypress,function(jqEvent){ if(Wicket.Event.keyCode(jqEvent)===KEY_ENTER){ if(selected-1||hidingAutocomplete===1){ hidingAutocomplete=0; jqEvent.stopImmediatePropagation(); --changed from jqEvent.stopPropagation(); Regards, James james yong wrote Hi, Now migrating a working project from wicket version 1.4 to 6.4. I have a text field that uses the following behaviors: A. AjaxFormComponentUpdatingBehavior(onchange); B. AutoCompleteBehavior; and C. AjaxFormComponentUpdatingBehavior(onkeypress). Say I enter an letter 'U' into the text field, and an auto-suggest list pops up. There are 2 problems which is not seen in wicket 1.4: 1) When I select an item (e.g. USD) from the auto-suggest list using a mouse, the onchange event from behavior A is fired twice. The 1st onchange event is for 'U' and the 2nd onchange event is for 'USD'. Can I prevent the 1st onchange event from happening? 2) When I select an item (e.g. USD) from the auto-suggest list using the Enter keypress, an onkeypress event is fired by behavior C. Can I prevent this onkeypress event from happening? Regards, James -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Using-AutoCompleteBehavior-with-other-behaviors-tp4655495p4655619.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 6: Using AutoCompleteBehavior with other behaviors
Hi Sven, WICKET-4990 is for problem 1. So I raised a jira issue for problem 2, together with its solution. WICKET-4998. Regards, James Sven Meier wrote Hi James, please attach that info to WICKET-4990. Thanks Sven On 01/22/2013 07:07 AM, james yong wrote: Hi, To rectify problem 2, I changed the following in wicket-autocomplete.js, Wicket.Event.add(obj,keypress,function(jqEvent){ if(Wicket.Event.keyCode(jqEvent)===KEY_ENTER){ if(selected-1||hidingAutocomplete===1){ hidingAutocomplete=0; jqEvent.stopImmediatePropagation(); --changed from jqEvent.stopPropagation(); Regards, James james yong wrote Hi, Now migrating a working project from wicket version 1.4 to 6.4. I have a text field that uses the following behaviors: A. AjaxFormComponentUpdatingBehavior(onchange); B. AutoCompleteBehavior; and C. AjaxFormComponentUpdatingBehavior(onkeypress). Say I enter an letter 'U' into the text field, and an auto-suggest list pops up. There are 2 problems which is not seen in wicket 1.4: 1) When I select an item (e.g. USD) from the auto-suggest list using a mouse, the onchange event from behavior A is fired twice. The 1st onchange event is for 'U' and the 2nd onchange event is for 'USD'. Can I prevent the 1st onchange event from happening? 2) When I select an item (e.g. USD) from the auto-suggest list using the Enter keypress, an onkeypress event is fired by behavior C. Can I prevent this onkeypress event from happening? Regards, James -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Using-AutoCompleteBehavior-with-other-behaviors-tp4655495p4655619.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Using-AutoCompleteBehavior-with-other-behaviors-tp4655495p4655626.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: Wicket 6: Using AutoCompleteBehavior with other behaviors
Sven Meier wrote Your first problem is a regression, see WICKET-1280. Please open a jira issue. Sven On 01/18/2013 04:45 AM, james yong wrote: Hi, Now migrating a working project from wicket version 1.4 to 6.4. I have a text field that uses the following behaviors: A. AjaxFormComponentUpdatingBehavior(onchange); B. AutoCompleteBehavior; and C. AjaxFormComponentUpdatingBehavior(onkeypress). Say I enter an letter 'U' into the text field, and an auto-suggest list pops up. There are 2 problems which is not seen in wicket 1.4: 1) When I select an item (e.g. USD) from the auto-suggest list using a mouse, the onchange event from behavior A is fired twice. The 1st onchange event is for 'U' and the 2nd onchange event is for 'USD'. Can I prevent the 1st onchange event from happening? 2) When I select an item (e.g. USD) from the auto-suggest list using the Enter keypress, an onkeypress event is fired by behavior C. Can I prevent this onkeypress event from happening? Regards, James Thanks. For problem 1, I have raised a JIRA issue, WICKET-4990 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Using-AutoCompleteBehavior-with-other-behaviors-tp4655495p4655497.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
Wicket 6: Using AutoCompleteBehavior with other behaviors
Hi, Now migrating a working project from wicket version 1.4 to 6.4. I have a text field that uses the following behaviors: A. AjaxFormComponentUpdatingBehavior(onchange); B. AutoCompleteBehavior; and C. AjaxFormComponentUpdatingBehavior(onkeypress). Say I enter an letter 'U' into the text field, and an auto-suggest list pops up. There are 2 problems which is not seen in wicket 1.4: 1) When I select an item (e.g. USD) from the auto-suggest list using a mouse, the onchange event from behavior A is fired twice. The 1st onchange event is for 'U' and the 2nd onchange event is for 'USD'. Can I prevent the 1st onchange event from happening? 2) When I select an item (e.g. USD) from the auto-suggest list using the Enter keypress, an onkeypress event is fired by behavior C. Can I prevent this onkeypress event from happening? Regards, James -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Using-AutoCompleteBehavior-with-other-behaviors-tp4655495.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: Wicket 6: Using AutoCompleteBehavior with other behaviors
Your first problem is a regression, see WICKET-1280. Please open a jira issue. Sven On 01/18/2013 04:45 AM, james yong wrote: Hi, Now migrating a working project from wicket version 1.4 to 6.4. I have a text field that uses the following behaviors: A. AjaxFormComponentUpdatingBehavior(onchange); B. AutoCompleteBehavior; and C. AjaxFormComponentUpdatingBehavior(onkeypress). Say I enter an letter 'U' into the text field, and an auto-suggest list pops up. There are 2 problems which is not seen in wicket 1.4: 1) When I select an item (e.g. USD) from the auto-suggest list using a mouse, the onchange event from behavior A is fired twice. The 1st onchange event is for 'U' and the 2nd onchange event is for 'USD'. Can I prevent the 1st onchange event from happening? 2) When I select an item (e.g. USD) from the auto-suggest list using the Enter keypress, an onkeypress event is fired by behavior C. Can I prevent this onkeypress event from happening? Regards, James -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Using-AutoCompleteBehavior-with-other-behaviors-tp4655495.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org