Re: Could not clear select2Choice component model value.
Done: https://github.com/wicketstuff/core/pull/402 Cheers, -Tom On 30.04.2015, at 09:31, Martin Grigorov mgrigo...@apache.org wrote: Hi Tom, Please send a PR with your suggested changes/improvements and we will discuss them. Thanks! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Apr 30, 2015 at 10:27 AM, Tom Götz t...@decoded.de wrote: I found the source of the mentioned changes: https://github.com/wicketstuff/core/commit/79781d83cf11ac63d2e661328fa7176b93184c64 -Tom On 30.04.2015, at 08:58, Tom Götz t...@decoded.de wrote: See my inline comments On 30.04.2015, at 04:29, Maxim Solodovnik solomax...@gmail.com wrote: The changes I have made were (most probably) merged from original Igor's code (https://github.com/ivaynberg/wicket-select2) I can’t find the ListT choices“ property of AbstractSelect2Choice anywhere in Igor’s original code, so I don’t know where it should have been merged from. What should be the purpose of having to provide a ChoiceProvider *and* a list of choices?! Currently you have to provide both to avoid an exception upon construction, which is … weird ;) and breaks existing implementations. 1) I believe this is since AbstractSelect2Choice is parent class for for Single and Multi choices. That is so, but what does this explain? ;) 2) the code was refactored a bit, so line numbers were changed. This constructor: https://github.com/wicketstuff/core/blob/wicket-6.x/jdk-1.6-parent/select2-parent/select2/src/main/java/org/wicketstuff/select2/AbstractSelect2Choice.java#L109 seems to not throwing any exceptions Yeah, but another does. This pattern does not make any sense to me: class Foo { public Foo(Object a) { this(a, null); } public Foo(Object a, Object b) { if (b == null) throw new IllegalArgumentException(); this.a = a; this.b = b; } } 3) you can call constructor mentioned in 2 to avoid exception. … 4) I guess renderChoice method is designed to render single choice object, you can override it (for ex. to add your own properties to each choice) other 2 methods are private helpers renderChoice is called from within renderChoices which is called from within renderHead. But only if !isAjax(), and: public boolean isAjax() { return provider != null; } …? That means: if no ChoiceProvider is set, then use the static ListT choices, but if you don’t provide a ChoiceProvider in the constructor you’ll get an IllegalArgumentException. This code is broken and doesn’t make any sense *to me*, or I didn’t get it yet ;-) My proposal is: if nobody can tell which problem should be solved with the introduced ListT choices I would revert it to get a working implementation again, as it is currently unusable. Personally, I need to upgrade the select.js library in our project, therefor I was looking at wicketstuff-select2, as we still use the original wicket-select2 implementation. The current state of it leaves mit three options, in order of priority: a) convince the wicketstuff-select2 maintainers to revert the code to a working state, which I am currently doing ;-) b) fork wicketstuff-select2 and provide own (working) implementation c) stick with Igor’s original code, which means: no upgrades to select2.js Maybe someone else can shed some light on this? Cheers, -Tom - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Could not clear select2Choice component model value.
Hi Tom, Please send a PR with your suggested changes/improvements and we will discuss them. Thanks! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Apr 30, 2015 at 10:27 AM, Tom Götz t...@decoded.de wrote: I found the source of the mentioned changes: https://github.com/wicketstuff/core/commit/79781d83cf11ac63d2e661328fa7176b93184c64 -Tom On 30.04.2015, at 08:58, Tom Götz t...@decoded.de wrote: See my inline comments On 30.04.2015, at 04:29, Maxim Solodovnik solomax...@gmail.com wrote: The changes I have made were (most probably) merged from original Igor's code (https://github.com/ivaynberg/wicket-select2) I can’t find the ListT choices“ property of AbstractSelect2Choice anywhere in Igor’s original code, so I don’t know where it should have been merged from. What should be the purpose of having to provide a ChoiceProvider *and* a list of choices?! Currently you have to provide both to avoid an exception upon construction, which is … weird ;) and breaks existing implementations. 1) I believe this is since AbstractSelect2Choice is parent class for for Single and Multi choices. That is so, but what does this explain? ;) 2) the code was refactored a bit, so line numbers were changed. This constructor: https://github.com/wicketstuff/core/blob/wicket-6.x/jdk-1.6-parent/select2-parent/select2/src/main/java/org/wicketstuff/select2/AbstractSelect2Choice.java#L109 seems to not throwing any exceptions Yeah, but another does. This pattern does not make any sense to me: class Foo { public Foo(Object a) { this(a, null); } public Foo(Object a, Object b) { if (b == null) throw new IllegalArgumentException(); this.a = a; this.b = b; } } 3) you can call constructor mentioned in 2 to avoid exception. … 4) I guess renderChoice method is designed to render single choice object, you can override it (for ex. to add your own properties to each choice) other 2 methods are private helpers renderChoice is called from within renderChoices which is called from within renderHead. But only if !isAjax(), and: public boolean isAjax() { return provider != null; } …? That means: if no ChoiceProvider is set, then use the static ListT choices, but if you don’t provide a ChoiceProvider in the constructor you’ll get an IllegalArgumentException. This code is broken and doesn’t make any sense *to me*, or I didn’t get it yet ;-) My proposal is: if nobody can tell which problem should be solved with the introduced ListT choices I would revert it to get a working implementation again, as it is currently unusable. Personally, I need to upgrade the select.js library in our project, therefor I was looking at wicketstuff-select2, as we still use the original wicket-select2 implementation. The current state of it leaves mit three options, in order of priority: a) convince the wicketstuff-select2 maintainers to revert the code to a working state, which I am currently doing ;-) b) fork wicketstuff-select2 and provide own (working) implementation c) stick with Igor’s original code, which means: no upgrades to select2.js Maybe someone else can shed some light on this? Cheers, -Tom - 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: Could not clear select2Choice component model value.
See my inline comments On 30.04.2015, at 04:29, Maxim Solodovnik solomax...@gmail.com wrote: The changes I have made were (most probably) merged from original Igor's code (https://github.com/ivaynberg/wicket-select2) I can’t find the ListT choices“ property of AbstractSelect2Choice anywhere in Igor’s original code, so I don’t know where it should have been merged from. What should be the purpose of having to provide a ChoiceProvider *and* a list of choices?! Currently you have to provide both to avoid an exception upon construction, which is … weird ;) and breaks existing implementations. 1) I believe this is since AbstractSelect2Choice is parent class for for Single and Multi choices. That is so, but what does this explain? ;) 2) the code was refactored a bit, so line numbers were changed. This constructor: https://github.com/wicketstuff/core/blob/wicket-6.x/jdk-1.6-parent/select2-parent/select2/src/main/java/org/wicketstuff/select2/AbstractSelect2Choice.java#L109 seems to not throwing any exceptions Yeah, but another does. This pattern does not make any sense to me: class Foo { public Foo(Object a) { this(a, null); } public Foo(Object a, Object b) { if (b == null) throw new IllegalArgumentException(); this.a = a; this.b = b; } } 3) you can call constructor mentioned in 2 to avoid exception. … 4) I guess renderChoice method is designed to render single choice object, you can override it (for ex. to add your own properties to each choice) other 2 methods are private helpers renderChoice is called from within renderChoices which is called from within renderHead. But only if !isAjax(), and: public boolean isAjax() { return provider != null; } …? That means: if no ChoiceProvider is set, then use the static ListT choices, but if you don’t provide a ChoiceProvider in the constructor you’ll get an IllegalArgumentException. This code is broken and doesn’t make any sense *to me*, or I didn’t get it yet ;-) My proposal is: if nobody can tell which problem should be solved with the introduced ListT choices I would revert it to get a working implementation again, as it is currently unusable. Personally, I need to upgrade the select.js library in our project, therefor I was looking at wicketstuff-select2, as we still use the original wicket-select2 implementation. The current state of it leaves mit three options, in order of priority: a) convince the wicketstuff-select2 maintainers to revert the code to a working state, which I am currently doing ;-) b) fork wicketstuff-select2 and provide own (working) implementation c) stick with Igor’s original code, which means: no upgrades to select2.js Maybe someone else can shed some light on this? Cheers, -Tom - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Could not clear select2Choice component model value.
I found the source of the mentioned changes: https://github.com/wicketstuff/core/commit/79781d83cf11ac63d2e661328fa7176b93184c64 -Tom On 30.04.2015, at 08:58, Tom Götz t...@decoded.de wrote: See my inline comments On 30.04.2015, at 04:29, Maxim Solodovnik solomax...@gmail.com wrote: The changes I have made were (most probably) merged from original Igor's code (https://github.com/ivaynberg/wicket-select2) I can’t find the ListT choices“ property of AbstractSelect2Choice anywhere in Igor’s original code, so I don’t know where it should have been merged from. What should be the purpose of having to provide a ChoiceProvider *and* a list of choices?! Currently you have to provide both to avoid an exception upon construction, which is … weird ;) and breaks existing implementations. 1) I believe this is since AbstractSelect2Choice is parent class for for Single and Multi choices. That is so, but what does this explain? ;) 2) the code was refactored a bit, so line numbers were changed. This constructor: https://github.com/wicketstuff/core/blob/wicket-6.x/jdk-1.6-parent/select2-parent/select2/src/main/java/org/wicketstuff/select2/AbstractSelect2Choice.java#L109 seems to not throwing any exceptions Yeah, but another does. This pattern does not make any sense to me: class Foo { public Foo(Object a) { this(a, null); } public Foo(Object a, Object b) { if (b == null) throw new IllegalArgumentException(); this.a = a; this.b = b; } } 3) you can call constructor mentioned in 2 to avoid exception. … 4) I guess renderChoice method is designed to render single choice object, you can override it (for ex. to add your own properties to each choice) other 2 methods are private helpers renderChoice is called from within renderChoices which is called from within renderHead. But only if !isAjax(), and: public boolean isAjax() { return provider != null; } …? That means: if no ChoiceProvider is set, then use the static ListT choices, but if you don’t provide a ChoiceProvider in the constructor you’ll get an IllegalArgumentException. This code is broken and doesn’t make any sense *to me*, or I didn’t get it yet ;-) My proposal is: if nobody can tell which problem should be solved with the introduced ListT choices I would revert it to get a working implementation again, as it is currently unusable. Personally, I need to upgrade the select.js library in our project, therefor I was looking at wicketstuff-select2, as we still use the original wicket-select2 implementation. The current state of it leaves mit three options, in order of priority: a) convince the wicketstuff-select2 maintainers to revert the code to a working state, which I am currently doing ;-) b) fork wicketstuff-select2 and provide own (working) implementation c) stick with Igor’s original code, which means: no upgrades to select2.js Maybe someone else can shed some light on this? Cheers, -Tom - 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: Could not clear select2Choice component model value.
Sorry, Github link was broken in last email (additional „:“ at the end), use this: https://github.com/wicketstuff/core/commit/92851a253253849582a117d66dee5fcdb15c7353 -Tom On 29.04.2015, at 14:01, Tom Götz t...@decoded.de wrote: Hi Maxim, I do not understand the changes you introduced to AbstractSelect2Choice.java in https://github.com/wicketstuff/core/commit/92851a253253849582a117d66dee5fcdb15c7353: [...] - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Could not clear select2Choice component model value.
Hi Maxim, I do not understand the changes you introduced to AbstractSelect2Choice.java in https://github.com/wicketstuff/core/commit/92851a253253849582a117d66dee5fcdb15c7353: 1. you added a private ListT choices“ property, what is the purpose of this? Isn’t the ChoiceProvider supposed to provide the list of choices? 2. in lines 130 and 133 you throw an IllegalStateException if either choices or renderer is null. Besides the fact that I didn’t get the purpose of the „choices“ list yet: this breaks several of our implementations, as we have select2 implementations where it’s not possible to determine the ChoiceProvider upon construction, but e.g. in onInitialize (we have several abstract select2 choice classes, where only the concrete implementation can know which choiceprovider to use …) 3. you can now call the constructor in line 74 (public AbstractSelect2Choice(String id, IModelM model)) which generates above mentioned IllegalStateException … 4. methods added starting in line 351: these use the newly introduced ListT choices, could you explain the idea behind that? Thanks in advance! -Tom On 30.11.2014, at 16:32, Maxim Solodovnik solomax...@gmail.com wrote: Merged! Seems to work as expected in our application Thanks for the fix Martin! On Wed, Nov 26, 2014 at 10:20 AM, Maxim Solodovnik solomax...@gmail.com wrote: Thanks a lot! I'll backport! On Wed, Nov 26, 2014 at 1:34 AM, Martin Grigorov mgrigo...@apache.org wrote: Fixed with https://github.com/wicketstuff/core/commit/b7e5b68b858336d85958663204166bd0852b43dd Hopefully all other use cases are still covered. I just noticed that there is https://github.com/wicketstuff/core/tree/wicket-6.x/jdk-1.6-parent/select2-parent (i.e. Wicket 6.x version). It would be good if someone backports the improvements from master branch to wicket-6.x: https://github.com/wicketstuff/core/commits/master/jdk-1.7-parent/select2-parent It seems Igor has been active last month at https://github.com/ivaynberg/wicket-select2/ and merged few PRs. I've ported them to WicketStuff 7.x but not to 6.x. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Could not clear select2Choice component model value.
Hello Tom, sorry for the brief response (I need to go in 30 minutes, hopefully Martin can also comment on this) The changes I have made were (most probably) merged from original Igor's code (https://github.com/ivaynberg/wicket-select2) 1) I believe this is since AbstractSelect2Choice is parent class for for Single and Multi choices. 2) the code was refactored a bit, so line numbers were changed. This constructor: https://github.com/wicketstuff/core/blob/wicket-6.x/jdk-1.6-parent/select2-parent/select2/src/main/java/org/wicketstuff/select2/AbstractSelect2Choice.java#L109 seems to not throwing any exceptions 3) you can call constructor mentioned in 2 to avoid exception. 4) I guess renderChoice method is designed to render single choice object, you can override it (for ex. to add your own properties to each choice) other 2 methods are private helpers On Wed, Apr 29, 2015 at 6:12 PM, Tom Götz t...@decoded.de wrote: Sorry, Github link was broken in last email (additional „:“ at the end), use this: https://github.com/wicketstuff/core/commit/92851a253253849582a117d66dee5fcdb15c7353 -Tom On 29.04.2015, at 14:01, Tom Götz t...@decoded.de wrote: Hi Maxim, I do not understand the changes you introduced to AbstractSelect2Choice.java in https://github.com/wicketstuff/core/commit/92851a253253849582a117d66dee5fcdb15c7353 : [...] - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- WBR Maxim aka solomax
Re: Could not clear select2Choice component model value.
Merged! Seems to work as expected in our application Thanks for the fix Martin! On Wed, Nov 26, 2014 at 10:20 AM, Maxim Solodovnik solomax...@gmail.com wrote: Thanks a lot! I'll backport! On Wed, Nov 26, 2014 at 1:34 AM, Martin Grigorov mgrigo...@apache.org wrote: Fixed with https://github.com/wicketstuff/core/commit/b7e5b68b858336d85958663204166bd0852b43dd Hopefully all other use cases are still covered. I just noticed that there is https://github.com/wicketstuff/core/tree/wicket-6.x/jdk-1.6-parent/select2-parent (i.e. Wicket 6.x version). It would be good if someone backports the improvements from master branch to wicket-6.x: https://github.com/wicketstuff/core/commits/master/jdk-1.7-parent/select2-parent It seems Igor has been active last month at https://github.com/ivaynberg/wicket-select2/ and merged few PRs. I've ported them to WicketStuff 7.x but not to 6.x. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Nov 25, 2014 at 8:48 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi Maxim, The change has been introduced in Wicket-Select2 with https://github.com/ivaynberg/wicket-select2/issues/29 I'll see how to fix it now. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Nov 12, 2014 at 12:11 PM, Martin Grigorov mgrigo...@apache.org wrote: It is in my TODO list... Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Nov 11, 2014 at 6:29 PM, Maxim Solodovnik solomax...@gmail.com wrote: Hello Martin, I know you are busy man ..., but, were you able to take a look at this issue? :) On 22 October 2014 11:23, Maxim Solodovnik solomax...@gmail.com wrote: It seems like script generated in renderInitializationScript should be added to AjaxRequestTarget on every Ajax update ... On 21 October 2014 17:09, Maxim Solodovnik solomax...@gmail.com wrote: Here it is: https://github.com/solomax/WicketSelect2Clear somehow in this example nothing works as expected :( I tried 2 different approaches, correct new value arrives to the page (according to wicket debug) but select2 is not being updated :( On 21 October 2014 13:23, Martin Grigorov mgrigo...@apache.org wrote: Hi Maxim, Please prepare a quickstart at GitHub and I'll take a look. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 17, 2014 at 5:42 PM, Maxim Solodovnik solomax...@gmail.com wrote: Martin, I have forked select2, unfortunately I'm still not sure how to fix the issue :( Clean link is added to the form and select data is being restored from requestParameters :( On 13 October 2014 19:06, Martin Grigorov mgrigo...@apache.org wrote: Maxim, Feel free to fork it! I.e. move it to WicketStuff. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 9, 2014 at 8:53 PM, Maxim Solodovnik solomax...@gmail.com wrote: Additionally select2 seems to need to be forked to wicketstuff to be fixed, should I do this? On 10 October 2014 00:49, Maxim Solodovnik solomax...@gmail.com wrote: @Paul, @Martin Select2Choice sets back its value to getWebRequest().getRequestParameters().getParameterNames() in renderInitializationScript method [1] It seems like JS code like: $(#country1).select2(data, null); can be executed on clear input, but this seems to be workaround I'm not sure why [1] method is used to get value, maybe you can suggest correct way of fixing this? [1] https://github.com/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java#L62 On 9 October 2014 16:39, MadasamySankarapandian madas...@mcruncher.com wrote: Thanks Maxim Solodovnik. On Thu, Oct 9, 2014 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com wrote: I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote:
Re: Could not clear select2Choice component model value.
Great ! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sun, Nov 30, 2014 at 4:32 PM, Maxim Solodovnik solomax...@gmail.com wrote: Merged! Seems to work as expected in our application Thanks for the fix Martin! On Wed, Nov 26, 2014 at 10:20 AM, Maxim Solodovnik solomax...@gmail.com wrote: Thanks a lot! I'll backport! On Wed, Nov 26, 2014 at 1:34 AM, Martin Grigorov mgrigo...@apache.org wrote: Fixed with https://github.com/wicketstuff/core/commit/b7e5b68b858336d85958663204166bd0852b43dd Hopefully all other use cases are still covered. I just noticed that there is https://github.com/wicketstuff/core/tree/wicket-6.x/jdk-1.6-parent/select2-parent (i.e. Wicket 6.x version). It would be good if someone backports the improvements from master branch to wicket-6.x: https://github.com/wicketstuff/core/commits/master/jdk-1.7-parent/select2-parent It seems Igor has been active last month at https://github.com/ivaynberg/wicket-select2/ and merged few PRs. I've ported them to WicketStuff 7.x but not to 6.x. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Nov 25, 2014 at 8:48 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi Maxim, The change has been introduced in Wicket-Select2 with https://github.com/ivaynberg/wicket-select2/issues/29 I'll see how to fix it now. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Nov 12, 2014 at 12:11 PM, Martin Grigorov mgrigo...@apache.org wrote: It is in my TODO list... Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Nov 11, 2014 at 6:29 PM, Maxim Solodovnik solomax...@gmail.com wrote: Hello Martin, I know you are busy man ..., but, were you able to take a look at this issue? :) On 22 October 2014 11:23, Maxim Solodovnik solomax...@gmail.com wrote: It seems like script generated in renderInitializationScript should be added to AjaxRequestTarget on every Ajax update ... On 21 October 2014 17:09, Maxim Solodovnik solomax...@gmail.com wrote: Here it is: https://github.com/solomax/WicketSelect2Clear somehow in this example nothing works as expected :( I tried 2 different approaches, correct new value arrives to the page (according to wicket debug) but select2 is not being updated :( On 21 October 2014 13:23, Martin Grigorov mgrigo...@apache.org wrote: Hi Maxim, Please prepare a quickstart at GitHub and I'll take a look. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 17, 2014 at 5:42 PM, Maxim Solodovnik solomax...@gmail.com wrote: Martin, I have forked select2, unfortunately I'm still not sure how to fix the issue :( Clean link is added to the form and select data is being restored from requestParameters :( On 13 October 2014 19:06, Martin Grigorov mgrigo...@apache.org wrote: Maxim, Feel free to fork it! I.e. move it to WicketStuff. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 9, 2014 at 8:53 PM, Maxim Solodovnik solomax...@gmail.com wrote: Additionally select2 seems to need to be forked to wicketstuff to be fixed, should I do this? On 10 October 2014 00:49, Maxim Solodovnik solomax...@gmail.com wrote: @Paul, @Martin Select2Choice sets back its value to getWebRequest().getRequestParameters().getParameterNames() in renderInitializationScript method [1] It seems like JS code like: $(#country1).select2(data, null); can be executed on clear input, but this seems to be workaround I'm not sure why [1] method is used to get value, maybe you can suggest correct way of fixing this? [1] https://github.com/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java#L62 On 9 October 2014 16:39, MadasamySankarapandian madas...@mcruncher.com wrote: Thanks Maxim Solodovnik. On Thu, Oct 9, 2014 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com wrote: I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor
Re: Could not clear select2Choice component model value.
Hi Maxim, The change has been introduced in Wicket-Select2 with https://github.com/ivaynberg/wicket-select2/issues/29 I'll see how to fix it now. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Nov 12, 2014 at 12:11 PM, Martin Grigorov mgrigo...@apache.org wrote: It is in my TODO list... Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Nov 11, 2014 at 6:29 PM, Maxim Solodovnik solomax...@gmail.com wrote: Hello Martin, I know you are busy man ..., but, were you able to take a look at this issue? :) On 22 October 2014 11:23, Maxim Solodovnik solomax...@gmail.com wrote: It seems like script generated in renderInitializationScript should be added to AjaxRequestTarget on every Ajax update ... On 21 October 2014 17:09, Maxim Solodovnik solomax...@gmail.com wrote: Here it is: https://github.com/solomax/WicketSelect2Clear somehow in this example nothing works as expected :( I tried 2 different approaches, correct new value arrives to the page (according to wicket debug) but select2 is not being updated :( On 21 October 2014 13:23, Martin Grigorov mgrigo...@apache.org wrote: Hi Maxim, Please prepare a quickstart at GitHub and I'll take a look. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 17, 2014 at 5:42 PM, Maxim Solodovnik solomax...@gmail.com wrote: Martin, I have forked select2, unfortunately I'm still not sure how to fix the issue :( Clean link is added to the form and select data is being restored from requestParameters :( On 13 October 2014 19:06, Martin Grigorov mgrigo...@apache.org wrote: Maxim, Feel free to fork it! I.e. move it to WicketStuff. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 9, 2014 at 8:53 PM, Maxim Solodovnik solomax...@gmail.com wrote: Additionally select2 seems to need to be forked to wicketstuff to be fixed, should I do this? On 10 October 2014 00:49, Maxim Solodovnik solomax...@gmail.com wrote: @Paul, @Martin Select2Choice sets back its value to getWebRequest().getRequestParameters().getParameterNames() in renderInitializationScript method [1] It seems like JS code like: $(#country1).select2(data, null); can be executed on clear input, but this seems to be workaround I'm not sure why [1] method is used to get value, maybe you can suggest correct way of fixing this? [1] https://github.com/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java#L62 On 9 October 2014 16:39, MadasamySankarapandian madas...@mcruncher.com wrote: Thanks Maxim Solodovnik. On Thu, Oct 9, 2014 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com wrote: I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer
Re: Could not clear select2Choice component model value.
Fixed with https://github.com/wicketstuff/core/commit/b7e5b68b858336d85958663204166bd0852b43dd Hopefully all other use cases are still covered. I just noticed that there is https://github.com/wicketstuff/core/tree/wicket-6.x/jdk-1.6-parent/select2-parent (i.e. Wicket 6.x version). It would be good if someone backports the improvements from master branch to wicket-6.x: https://github.com/wicketstuff/core/commits/master/jdk-1.7-parent/select2-parent It seems Igor has been active last month at https://github.com/ivaynberg/wicket-select2/ and merged few PRs. I've ported them to WicketStuff 7.x but not to 6.x. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Nov 25, 2014 at 8:48 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi Maxim, The change has been introduced in Wicket-Select2 with https://github.com/ivaynberg/wicket-select2/issues/29 I'll see how to fix it now. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Nov 12, 2014 at 12:11 PM, Martin Grigorov mgrigo...@apache.org wrote: It is in my TODO list... Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Nov 11, 2014 at 6:29 PM, Maxim Solodovnik solomax...@gmail.com wrote: Hello Martin, I know you are busy man ..., but, were you able to take a look at this issue? :) On 22 October 2014 11:23, Maxim Solodovnik solomax...@gmail.com wrote: It seems like script generated in renderInitializationScript should be added to AjaxRequestTarget on every Ajax update ... On 21 October 2014 17:09, Maxim Solodovnik solomax...@gmail.com wrote: Here it is: https://github.com/solomax/WicketSelect2Clear somehow in this example nothing works as expected :( I tried 2 different approaches, correct new value arrives to the page (according to wicket debug) but select2 is not being updated :( On 21 October 2014 13:23, Martin Grigorov mgrigo...@apache.org wrote: Hi Maxim, Please prepare a quickstart at GitHub and I'll take a look. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 17, 2014 at 5:42 PM, Maxim Solodovnik solomax...@gmail.com wrote: Martin, I have forked select2, unfortunately I'm still not sure how to fix the issue :( Clean link is added to the form and select data is being restored from requestParameters :( On 13 October 2014 19:06, Martin Grigorov mgrigo...@apache.org wrote: Maxim, Feel free to fork it! I.e. move it to WicketStuff. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 9, 2014 at 8:53 PM, Maxim Solodovnik solomax...@gmail.com wrote: Additionally select2 seems to need to be forked to wicketstuff to be fixed, should I do this? On 10 October 2014 00:49, Maxim Solodovnik solomax...@gmail.com wrote: @Paul, @Martin Select2Choice sets back its value to getWebRequest().getRequestParameters().getParameterNames() in renderInitializationScript method [1] It seems like JS code like: $(#country1).select2(data, null); can be executed on clear input, but this seems to be workaround I'm not sure why [1] method is used to get value, maybe you can suggest correct way of fixing this? [1] https://github.com/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java#L62 On 9 October 2014 16:39, MadasamySankarapandian madas...@mcruncher.com wrote: Thanks Maxim Solodovnik. On Thu, Oct 9, 2014 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com wrote: I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff:
Re: Could not clear select2Choice component model value.
Thanks a lot! I'll backport! On Wed, Nov 26, 2014 at 1:34 AM, Martin Grigorov mgrigo...@apache.org wrote: Fixed with https://github.com/wicketstuff/core/commit/b7e5b68b858336d85958663204166bd0852b43dd Hopefully all other use cases are still covered. I just noticed that there is https://github.com/wicketstuff/core/tree/wicket-6.x/jdk-1.6-parent/select2-parent (i.e. Wicket 6.x version). It would be good if someone backports the improvements from master branch to wicket-6.x: https://github.com/wicketstuff/core/commits/master/jdk-1.7-parent/select2-parent It seems Igor has been active last month at https://github.com/ivaynberg/wicket-select2/ and merged few PRs. I've ported them to WicketStuff 7.x but not to 6.x. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Nov 25, 2014 at 8:48 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi Maxim, The change has been introduced in Wicket-Select2 with https://github.com/ivaynberg/wicket-select2/issues/29 I'll see how to fix it now. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Nov 12, 2014 at 12:11 PM, Martin Grigorov mgrigo...@apache.org wrote: It is in my TODO list... Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Nov 11, 2014 at 6:29 PM, Maxim Solodovnik solomax...@gmail.com wrote: Hello Martin, I know you are busy man ..., but, were you able to take a look at this issue? :) On 22 October 2014 11:23, Maxim Solodovnik solomax...@gmail.com wrote: It seems like script generated in renderInitializationScript should be added to AjaxRequestTarget on every Ajax update ... On 21 October 2014 17:09, Maxim Solodovnik solomax...@gmail.com wrote: Here it is: https://github.com/solomax/WicketSelect2Clear somehow in this example nothing works as expected :( I tried 2 different approaches, correct new value arrives to the page (according to wicket debug) but select2 is not being updated :( On 21 October 2014 13:23, Martin Grigorov mgrigo...@apache.org wrote: Hi Maxim, Please prepare a quickstart at GitHub and I'll take a look. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 17, 2014 at 5:42 PM, Maxim Solodovnik solomax...@gmail.com wrote: Martin, I have forked select2, unfortunately I'm still not sure how to fix the issue :( Clean link is added to the form and select data is being restored from requestParameters :( On 13 October 2014 19:06, Martin Grigorov mgrigo...@apache.org wrote: Maxim, Feel free to fork it! I.e. move it to WicketStuff. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 9, 2014 at 8:53 PM, Maxim Solodovnik solomax...@gmail.com wrote: Additionally select2 seems to need to be forked to wicketstuff to be fixed, should I do this? On 10 October 2014 00:49, Maxim Solodovnik solomax...@gmail.com wrote: @Paul, @Martin Select2Choice sets back its value to getWebRequest().getRequestParameters().getParameterNames() in renderInitializationScript method [1] It seems like JS code like: $(#country1).select2(data, null); can be executed on clear input, but this seems to be workaround I'm not sure why [1] method is used to get value, maybe you can suggest correct way of fixing this? [1] https://github.com/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java#L62 On 9 October 2014 16:39, MadasamySankarapandian madas...@mcruncher.com wrote: Thanks Maxim Solodovnik. On Thu, Oct 9, 2014 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com wrote: I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue
Re: Could not clear select2Choice component model value.
It is in my TODO list... Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Nov 11, 2014 at 6:29 PM, Maxim Solodovnik solomax...@gmail.com wrote: Hello Martin, I know you are busy man ..., but, were you able to take a look at this issue? :) On 22 October 2014 11:23, Maxim Solodovnik solomax...@gmail.com wrote: It seems like script generated in renderInitializationScript should be added to AjaxRequestTarget on every Ajax update ... On 21 October 2014 17:09, Maxim Solodovnik solomax...@gmail.com wrote: Here it is: https://github.com/solomax/WicketSelect2Clear somehow in this example nothing works as expected :( I tried 2 different approaches, correct new value arrives to the page (according to wicket debug) but select2 is not being updated :( On 21 October 2014 13:23, Martin Grigorov mgrigo...@apache.org wrote: Hi Maxim, Please prepare a quickstart at GitHub and I'll take a look. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 17, 2014 at 5:42 PM, Maxim Solodovnik solomax...@gmail.com wrote: Martin, I have forked select2, unfortunately I'm still not sure how to fix the issue :( Clean link is added to the form and select data is being restored from requestParameters :( On 13 October 2014 19:06, Martin Grigorov mgrigo...@apache.org wrote: Maxim, Feel free to fork it! I.e. move it to WicketStuff. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 9, 2014 at 8:53 PM, Maxim Solodovnik solomax...@gmail.com wrote: Additionally select2 seems to need to be forked to wicketstuff to be fixed, should I do this? On 10 October 2014 00:49, Maxim Solodovnik solomax...@gmail.com wrote: @Paul, @Martin Select2Choice sets back its value to getWebRequest().getRequestParameters().getParameterNames() in renderInitializationScript method [1] It seems like JS code like: $(#country1).select2(data, null); can be executed on clear input, but this seems to be workaround I'm not sure why [1] method is used to get value, maybe you can suggest correct way of fixing this? [1] https://github.com/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java#L62 On 9 October 2014 16:39, MadasamySankarapandian madas...@mcruncher.com wrote: Thanks Maxim Solodovnik. On Thu, Oct 9, 2014 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com wrote: I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training
Re: Could not clear select2Choice component model value.
Hello Martin, I know you are busy man ..., but, were you able to take a look at this issue? :) On 22 October 2014 11:23, Maxim Solodovnik solomax...@gmail.com wrote: It seems like script generated in renderInitializationScript should be added to AjaxRequestTarget on every Ajax update ... On 21 October 2014 17:09, Maxim Solodovnik solomax...@gmail.com wrote: Here it is: https://github.com/solomax/WicketSelect2Clear somehow in this example nothing works as expected :( I tried 2 different approaches, correct new value arrives to the page (according to wicket debug) but select2 is not being updated :( On 21 October 2014 13:23, Martin Grigorov mgrigo...@apache.org wrote: Hi Maxim, Please prepare a quickstart at GitHub and I'll take a look. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 17, 2014 at 5:42 PM, Maxim Solodovnik solomax...@gmail.com wrote: Martin, I have forked select2, unfortunately I'm still not sure how to fix the issue :( Clean link is added to the form and select data is being restored from requestParameters :( On 13 October 2014 19:06, Martin Grigorov mgrigo...@apache.org wrote: Maxim, Feel free to fork it! I.e. move it to WicketStuff. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 9, 2014 at 8:53 PM, Maxim Solodovnik solomax...@gmail.com wrote: Additionally select2 seems to need to be forked to wicketstuff to be fixed, should I do this? On 10 October 2014 00:49, Maxim Solodovnik solomax...@gmail.com wrote: @Paul, @Martin Select2Choice sets back its value to getWebRequest().getRequestParameters().getParameterNames() in renderInitializationScript method [1] It seems like JS code like: $(#country1).select2(data, null); can be executed on clear input, but this seems to be workaround I'm not sure why [1] method is used to get value, maybe you can suggest correct way of fixing this? [1] https://github.com/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java#L62 On 9 October 2014 16:39, MadasamySankarapandian madas...@mcruncher.com wrote: Thanks Maxim Solodovnik. On Thu, Oct 9, 2014 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com wrote: I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here.
Re: Could not clear select2Choice component model value.
Hi Maxim, Please prepare a quickstart at GitHub and I'll take a look. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 17, 2014 at 5:42 PM, Maxim Solodovnik solomax...@gmail.com wrote: Martin, I have forked select2, unfortunately I'm still not sure how to fix the issue :( Clean link is added to the form and select data is being restored from requestParameters :( On 13 October 2014 19:06, Martin Grigorov mgrigo...@apache.org wrote: Maxim, Feel free to fork it! I.e. move it to WicketStuff. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 9, 2014 at 8:53 PM, Maxim Solodovnik solomax...@gmail.com wrote: Additionally select2 seems to need to be forked to wicketstuff to be fixed, should I do this? On 10 October 2014 00:49, Maxim Solodovnik solomax...@gmail.com wrote: @Paul, @Martin Select2Choice sets back its value to getWebRequest().getRequestParameters().getParameterNames() in renderInitializationScript method [1] It seems like JS code like: $(#country1).select2(data, null); can be executed on clear input, but this seems to be workaround I'm not sure why [1] method is used to get value, maybe you can suggest correct way of fixing this? [1] https://github.com/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java#L62 On 9 October 2014 16:39, MadasamySankarapandian madas...@mcruncher.com wrote: Thanks Maxim Solodovnik. On Thu, Oct 9, 2014 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com wrote: I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click the clear link, all components values are cleared except Select2Choice component. Here with attached quickstart to recreate this problem. Follow below steps to recreate this problem * Download attachment and extract it. * cd select2-quickstart. * Then execute mvn clean package jetty:run * Type localhost:8080 in browser * Give the input to name and country field. * Click clear link Now name(*TextField*) field value is cleared and country(*Select2Choice*) field value is not cleared.
Re: Could not clear select2Choice component model value.
Here it is: https://github.com/solomax/WicketSelect2Clear somehow in this example nothing works as expected :( I tried 2 different approaches, correct new value arrives to the page (according to wicket debug) but select2 is not being updated :( On 21 October 2014 13:23, Martin Grigorov mgrigo...@apache.org wrote: Hi Maxim, Please prepare a quickstart at GitHub and I'll take a look. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 17, 2014 at 5:42 PM, Maxim Solodovnik solomax...@gmail.com wrote: Martin, I have forked select2, unfortunately I'm still not sure how to fix the issue :( Clean link is added to the form and select data is being restored from requestParameters :( On 13 October 2014 19:06, Martin Grigorov mgrigo...@apache.org wrote: Maxim, Feel free to fork it! I.e. move it to WicketStuff. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 9, 2014 at 8:53 PM, Maxim Solodovnik solomax...@gmail.com wrote: Additionally select2 seems to need to be forked to wicketstuff to be fixed, should I do this? On 10 October 2014 00:49, Maxim Solodovnik solomax...@gmail.com wrote: @Paul, @Martin Select2Choice sets back its value to getWebRequest().getRequestParameters().getParameterNames() in renderInitializationScript method [1] It seems like JS code like: $(#country1).select2(data, null); can be executed on clear input, but this seems to be workaround I'm not sure why [1] method is used to get value, maybe you can suggest correct way of fixing this? [1] https://github.com/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java#L62 On 9 October 2014 16:39, MadasamySankarapandian madas...@mcruncher.com wrote: Thanks Maxim Solodovnik. On Thu, Oct 9, 2014 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com wrote: I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click the clear link, all components values are cleared except Select2Choice component. Here with attached quickstart to recreate this
Re: Could not clear select2Choice component model value.
It seems like script generated in renderInitializationScript should be added to AjaxRequestTarget on every Ajax update ... On 21 October 2014 17:09, Maxim Solodovnik solomax...@gmail.com wrote: Here it is: https://github.com/solomax/WicketSelect2Clear somehow in this example nothing works as expected :( I tried 2 different approaches, correct new value arrives to the page (according to wicket debug) but select2 is not being updated :( On 21 October 2014 13:23, Martin Grigorov mgrigo...@apache.org wrote: Hi Maxim, Please prepare a quickstart at GitHub and I'll take a look. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 17, 2014 at 5:42 PM, Maxim Solodovnik solomax...@gmail.com wrote: Martin, I have forked select2, unfortunately I'm still not sure how to fix the issue :( Clean link is added to the form and select data is being restored from requestParameters :( On 13 October 2014 19:06, Martin Grigorov mgrigo...@apache.org wrote: Maxim, Feel free to fork it! I.e. move it to WicketStuff. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 9, 2014 at 8:53 PM, Maxim Solodovnik solomax...@gmail.com wrote: Additionally select2 seems to need to be forked to wicketstuff to be fixed, should I do this? On 10 October 2014 00:49, Maxim Solodovnik solomax...@gmail.com wrote: @Paul, @Martin Select2Choice sets back its value to getWebRequest().getRequestParameters().getParameterNames() in renderInitializationScript method [1] It seems like JS code like: $(#country1).select2(data, null); can be executed on clear input, but this seems to be workaround I'm not sure why [1] method is used to get value, maybe you can suggest correct way of fixing this? [1] https://github.com/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java#L62 On 9 October 2014 16:39, MadasamySankarapandian madas...@mcruncher.com wrote: Thanks Maxim Solodovnik. On Thu, Oct 9, 2014 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com wrote: I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click
Re: Could not clear select2Choice component model value.
Martin, I have forked select2, unfortunately I'm still not sure how to fix the issue :( Clean link is added to the form and select data is being restored from requestParameters :( On 13 October 2014 19:06, Martin Grigorov mgrigo...@apache.org wrote: Maxim, Feel free to fork it! I.e. move it to WicketStuff. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 9, 2014 at 8:53 PM, Maxim Solodovnik solomax...@gmail.com wrote: Additionally select2 seems to need to be forked to wicketstuff to be fixed, should I do this? On 10 October 2014 00:49, Maxim Solodovnik solomax...@gmail.com wrote: @Paul, @Martin Select2Choice sets back its value to getWebRequest().getRequestParameters().getParameterNames() in renderInitializationScript method [1] It seems like JS code like: $(#country1).select2(data, null); can be executed on clear input, but this seems to be workaround I'm not sure why [1] method is used to get value, maybe you can suggest correct way of fixing this? [1] https://github.com/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java#L62 On 9 October 2014 16:39, MadasamySankarapandian madas...@mcruncher.com wrote: Thanks Maxim Solodovnik. On Thu, Oct 9, 2014 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com wrote: I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click the clear link, all components values are cleared except Select2Choice component. Here with attached quickstart to recreate this problem. Follow below steps to recreate this problem * Download attachment and extract it. * cd select2-quickstart. * Then execute mvn clean package jetty:run * Type localhost:8080 in browser * Give the input to name and country field. * Click clear link Now name(*TextField*) field value is cleared and country(*Select2Choice*) field value is not cleared. -- Thanks and regards Madasamy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Could not clear select2Choice component model value.
Maxim, Feel free to fork it! I.e. move it to WicketStuff. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 9, 2014 at 8:53 PM, Maxim Solodovnik solomax...@gmail.com wrote: Additionally select2 seems to need to be forked to wicketstuff to be fixed, should I do this? On 10 October 2014 00:49, Maxim Solodovnik solomax...@gmail.com wrote: @Paul, @Martin Select2Choice sets back its value to getWebRequest().getRequestParameters().getParameterNames() in renderInitializationScript method [1] It seems like JS code like: $(#country1).select2(data, null); can be executed on clear input, but this seems to be workaround I'm not sure why [1] method is used to get value, maybe you can suggest correct way of fixing this? [1] https://github.com/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java#L62 On 9 October 2014 16:39, MadasamySankarapandian madas...@mcruncher.com wrote: Thanks Maxim Solodovnik. On Thu, Oct 9, 2014 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com wrote: I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click the clear link, all components values are cleared except Select2Choice component. Here with attached quickstart to recreate this problem. Follow below steps to recreate this problem * Download attachment and extract it. * cd select2-quickstart. * Then execute mvn clean package jetty:run * Type localhost:8080 in browser * Give the input to name and country field. * Click clear link Now name(*TextField*) field value is cleared and country(*Select2Choice*) field value is not cleared. -- Thanks and regards Madasamy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- WBR Maxim aka solomax -- WBR Maxim aka solomax -- Thanks and regards Madasamy -- WBR Maxim aka solomax -- Thanks and regards Madasamy -- WBR Maxim aka solomax -- WBR Maxim aka solomax
Re: Could not clear select2Choice component model value.
Thanks Maxim Solodovnik. On Thu, Oct 9, 2014 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com wrote: I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click the clear link, all components values are cleared except Select2Choice component. Here with attached quickstart to recreate this problem. Follow below steps to recreate this problem * Download attachment and extract it. * cd select2-quickstart. * Then execute mvn clean package jetty:run * Type localhost:8080 in browser * Give the input to name and country field. * Click clear link Now name(*TextField*) field value is cleared and country(*Select2Choice*) field value is not cleared. -- Thanks and regards Madasamy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- WBR Maxim aka solomax -- WBR Maxim aka solomax -- Thanks and regards Madasamy -- WBR Maxim aka solomax -- Thanks and regards Madasamy
Re: Could not clear select2Choice component model value.
@Paul, @Martin Select2Choice sets back its value to getWebRequest().getRequestParameters().getParameterNames() in renderInitializationScript method [1] It seems like JS code like: $(#country1).select2(data, null); can be executed on clear input, but this seems to be workaround I'm not sure why [1] method is used to get value, maybe you can suggest correct way of fixing this? [1] https://github.com/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java#L62 On 9 October 2014 16:39, MadasamySankarapandian madas...@mcruncher.com wrote: Thanks Maxim Solodovnik. On Thu, Oct 9, 2014 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com wrote: I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click the clear link, all components values are cleared except Select2Choice component. Here with attached quickstart to recreate this problem. Follow below steps to recreate this problem * Download attachment and extract it. * cd select2-quickstart. * Then execute mvn clean package jetty:run * Type localhost:8080 in browser * Give the input to name and country field. * Click clear link Now name(*TextField*) field value is cleared and country(*Select2Choice*) field value is not cleared. -- Thanks and regards Madasamy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- WBR Maxim aka solomax -- WBR Maxim aka solomax -- Thanks and regards Madasamy -- WBR Maxim aka solomax -- Thanks and regards Madasamy -- WBR Maxim aka solomax
Re: Could not clear select2Choice component model value.
Additionally select2 seems to need to be forked to wicketstuff to be fixed, should I do this? On 10 October 2014 00:49, Maxim Solodovnik solomax...@gmail.com wrote: @Paul, @Martin Select2Choice sets back its value to getWebRequest().getRequestParameters().getParameterNames() in renderInitializationScript method [1] It seems like JS code like: $(#country1).select2(data, null); can be executed on clear input, but this seems to be workaround I'm not sure why [1] method is used to get value, maybe you can suggest correct way of fixing this? [1] https://github.com/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java#L62 On 9 October 2014 16:39, MadasamySankarapandian madas...@mcruncher.com wrote: Thanks Maxim Solodovnik. On Thu, Oct 9, 2014 at 12:33 PM, Maxim Solodovnik solomax...@gmail.com wrote: I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click the clear link, all components values are cleared except Select2Choice component. Here with attached quickstart to recreate this problem. Follow below steps to recreate this problem * Download attachment and extract it. * cd select2-quickstart. * Then execute mvn clean package jetty:run * Type localhost:8080 in browser * Give the input to name and country field. * Click clear link Now name(*TextField*) field value is cleared and country(*Select2Choice*) field value is not cleared. -- Thanks and regards Madasamy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- WBR Maxim aka solomax -- WBR Maxim aka solomax -- Thanks and regards Madasamy -- WBR Maxim aka solomax -- Thanks and regards Madasamy -- WBR Maxim aka solomax -- WBR Maxim aka solomax
Re: Could not clear select2Choice component model value.
Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click the clear link, all components values are cleared except Select2Choice component. Here with attached quickstart to recreate this problem. Follow below steps to recreate this problem * Download attachment and extract it. * cd select2-quickstart. * Then execute mvn clean package jetty:run * Type localhost:8080 in browser * Give the input to name and country field. * Click clear link Now name(*TextField*) field value is cleared and country(*Select2Choice*) field value is not cleared. -- Thanks and regards Madasamy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- WBR Maxim aka solomax -- WBR Maxim aka solomax -- Thanks and regards Madasamy
Re: Could not clear select2Choice component model value.
I also noticed this issue in our project, Will try to take a look at it On 9 October 2014 07:33, MadasamySankarapandian madas...@mcruncher.com wrote: Thankyou very much for yours reply. I call formComponent.clearInput() in my ClearFormVisitor class. But It does not work. I have created issue-96 https://github.com/ivaynberg/wicket-select2/issues/96 in wicket-select2 project. On Wed, Oct 8, 2014 at 12:13 AM, Maxim Solodovnik solomax...@gmail.com wrote: Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click the clear link, all components values are cleared except Select2Choice component. Here with attached quickstart to recreate this problem. Follow below steps to recreate this problem * Download attachment and extract it. * cd select2-quickstart. * Then execute mvn clean package jetty:run * Type localhost:8080 in browser * Give the input to name and country field. * Click clear link Now name(*TextField*) field value is cleared and country(*Select2Choice*) field value is not cleared. -- Thanks and regards Madasamy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- WBR Maxim aka solomax -- WBR Maxim aka solomax -- Thanks and regards Madasamy -- WBR Maxim aka solomax
Re: Could not clear select2Choice component model value.
Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click the clear link, all components values are cleared except Select2Choice component. Here with attached quickstart to recreate this problem. Follow below steps to recreate this problem * Download attachment and extract it. * cd select2-quickstart. * Then execute mvn clean package jetty:run * Type localhost:8080 in browser * Give the input to name and country field. * Click clear link Now name(*TextField*) field value is cleared and country(*Select2Choice*) field value is not cleared. -- Thanks and regards Madasamy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Could not clear select2Choice component model value.
You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click the clear link, all components values are cleared except Select2Choice component. Here with attached quickstart to recreate this problem. Follow below steps to recreate this problem * Download attachment and extract it. * cd select2-quickstart. * Then execute mvn clean package jetty:run * Type localhost:8080 in browser * Give the input to name and country field. * Click clear link Now name(*TextField*) field value is cleared and country(*Select2Choice*) field value is not cleared. -- Thanks and regards Madasamy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Could not clear select2Choice component model value.
we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click the clear link, all components values are cleared except Select2Choice component. Here with attached quickstart to recreate this problem. Follow below steps to recreate this problem * Download attachment and extract it. * cd select2-quickstart. * Then execute mvn clean package jetty:run * Type localhost:8080 in browser * Give the input to name and country field. * Click clear link Now name(*TextField*) field value is cleared and country(*Select2Choice*) field value is not cleared. -- Thanks and regards Madasamy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- WBR Maxim aka solomax
Re: Could not clear select2Choice component model value.
Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click the clear link, all components values are cleared except Select2Choice component. Here with attached quickstart to recreate this problem. Follow below steps to recreate this problem * Download attachment and extract it. * cd select2-quickstart. * Then execute mvn clean package jetty:run * Type localhost:8080 in browser * Give the input to name and country field. * Click clear link Now name(*TextField*) field value is cleared and country(*Select2Choice*) field value is not cleared. -- Thanks and regards Madasamy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- WBR Maxim aka solomax
Re: Could not clear select2Choice component model value.
Done, thanks for pointing this out On 7 October 2014 23:08, Paul Bors p...@bors.ws wrote: Can you update this issue then? https://github.com/ivaynberg/wicket-select2/issues/93 On Tue, Oct 7, 2014 at 12:00 PM, Maxim Solodovnik solomax...@gmail.com wrote: we recently moved this component to wicketstuff: https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/select2-parent to get Wicket7 compatible version On 7 October 2014 22:56, Paul Bors p...@bors.ws wrote: You can also ask the developer via: https://github.com/ivaynberg/wicket-select2/issues You should probably take a look over the open issues so that you are familiar with that other developers faced. Maybe one of those issues might be a road block for you? Although you will get a faster reply from Igor or another Wicket developer via this list :) On Tue, Oct 7, 2014 at 4:23 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You should call formComponent.clearInput() too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Oct 7, 2014 at 9:13 AM, MadasamySankarapandian madas...@mcruncher.com wrote: This is regarding wicket-select2 project. I could not find any mailing list for this project. That is why sending here. Please some one help me. I have created clear link to clear the form input values. After click the clear link, all components values are cleared except Select2Choice component. Here with attached quickstart to recreate this problem. Follow below steps to recreate this problem * Download attachment and extract it. * cd select2-quickstart. * Then execute mvn clean package jetty:run * Type localhost:8080 in browser * Give the input to name and country field. * Click clear link Now name(*TextField*) field value is cleared and country(*Select2Choice*) field value is not cleared. -- Thanks and regards Madasamy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- WBR Maxim aka solomax -- WBR Maxim aka solomax