Wicket6 and big (100 rows) list with ajaxbehaviour: slow
In Wicket 6 ajax events changed from being inline ( input type=text wicket:id=compWithAjaxBehavior/ I have worked around this, but I would really prefer the official way... Is this being looked at, or is it just unavoidable because of the new way of doing things? On my pc, I get about 3 seconds extra wait-time in wicket 6 vs wicket 1.5.8 for a list with 100 rows... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket6-and-big-100-rows-list-with-ajaxbehaviour-slow-tp4652281.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: Wicket6 and big (100 rows) list with ajaxbehaviour: slow
Hi, Which browser do you use ? I guess it is worst with IE. In general having a big table with many event listeners (inline or not) will lead to slower rendering. In our app we also need a table with many rows/columns and we use event delegation - there is only one event listener attached at the table element and all clicks in the cells are captured by it and there we extract the specific data from the event's targetElement. This scales much better. On Mon, Sep 24, 2012 at 12:30 PM, obell oddg...@deltasoft.no wrote: In Wicket 6 ajax events changed from being inline ( input type=text wicket:id=compWithAjaxBehavior/ I have worked around this, but I would really prefer the official way... Is this being looked at, or is it just unavoidable because of the new way of doing things? On my pc, I get about 3 seconds extra wait-time in wicket 6 vs wicket 1.5.8 for a list with 100 rows... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket6-and-big-100-rows-list-with-ajaxbehaviour-slow-tp4652281.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket6 and big (100 rows) list with ajaxbehaviour: slow
Hehe.. Forgot to check different browsers, and to my surprise the only browser with a significant slowdown is Chrome... :o) IE8 and Firefox had basically no difference in the timing... Good idea with the event listener on the table, but I would think that makes the java-code uglier? With my workaround (which seems unnecessary now), I use it just like normal, but instead of adding AjaxFormComponentUpdatingBehavior, I add AjaxLiteBehavior (custom behavior), and override onEvent in that to handle the event... With event on table you would have to find out which element was clicked first (or whatever event you want) and then handle it. Probably better than my solution, anyway.. :o) Martin Grigorov-4 wrote Hi, Which browser do you use ? I guess it is worst with IE. In general having a big table with many event listeners (inline or not) will lead to slower rendering. In our app we also need a table with many rows/columns and we use event delegation - there is only one event listener attached at the element and all clicks in the cells are captured by it and there we extract the specific data from the event's targetElement. This scales much better. On Mon, Sep 24, 2012 at 12:30 PM, obell lt; oddgeir@ gt; wrote: In Wicket 6 ajax events changed from being inline ( input type=text wicket:id=compWithAjaxBehavior/ I have worked around this, but I would really prefer the official way... Is this being looked at, or is it just unavoidable because of the new way of doing things? On my pc, I get about 3 seconds extra wait-time in wicket 6 vs wicket 1.5.8 for a list with 100 rows... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket6-and-big-100-rows-list-with-ajaxbehaviour-slow-tp4652281.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - 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/Wicket6-and-big-100-rows-list-with-ajaxbehaviour-slow-tp4652281p4652283.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: Datepicker with range selection support
James, thanks for your comment. Yes, the demo site is a functional wicket app. You can get the source at the github project. Sebastien, you are welcome! Thanks to let me know what you finally did... Best regards, Sebastien. On Mon, Sep 24, 2012 at 3:06 AM, James Eliyezar ja...@mcruncher.com wrote: This is really amazing Sebastien. wicket-jquery-ui is really feature rich. Is the demo site a wicket app? On Mon, Sep 24, 2012 at 1:38 AM, Sébastien Gautrin sebastien.gaut...@gmail.com wrote: Wow, This is simply terrific. I will sift through all this in the next weeks. All I can say is a big thanks for everything! Sébastien
Re: Regarding WARN - (WebPageRenderer.java:162) v1.5.7
Just tested with 6.0: create new project: mvn archetype:generate -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=6.0.0 -DgroupId=com.mycompany -DartifactId=myproject -DarchetypeRepository=https://repository.apache.org/ -DinteractiveMode=false open WicketApplication.java and add following lines to init() method: *setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), this)); mountPage(/home, HomePage.class);* read following from console: *WARN - WebPageRenderer- The Buffered response should be handled by BufferedResponseRequestHandler* Is it bad practice to have both MountedMapper and CryptoMapper? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Regarding-WARN-WebPageRenderer-java-162-v1-5-7-tp4651245p4652285.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: Regarding WARN - (WebPageRenderer.java:162) v1.5.7
Hi, On Mon, Sep 24, 2012 at 4:00 PM, yesotaso yeso112...@yahoo.com wrote: Just tested with 6.0: create new project: mvn archetype:generate -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=6.0.0 -DgroupId=com.mycompany -DartifactId=myproject -DarchetypeRepository=https://repository.apache.org/ -DinteractiveMode=false open WicketApplication.java and add following lines to init() method: *setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), this)); mountPage(/home, HomePage.class);* read following from console: *WARN - WebPageRenderer- The Buffered response should be handled by BufferedResponseRequestHandler* Is it bad practice to have both MountedMapper and CryptoMapper? No, it is not. With this setup all the mount pages before the registration of the CryptoMapper should have encrypted urls and the one for /home should be not encrypted. Please file a ticket and attach the quickstart. Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Regarding-WARN-WebPageRenderer-java-162-v1-5-7-tp4651245p4652285.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Regarding WARN - (WebPageRenderer.java:162) v1.5.7
Created WICKET-4780 https://issues.apache.org/jira/browse/WICKET-4780 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Regarding-WARN-WebPageRenderer-java-162-v1-5-7-tp4651245p4652288.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 Behavior triggered by Ajax
This does not seem to work, I tried the jQuery command though and with a simple Javascript statement, it seems to work as when I add by an attribute modifier: onclick=alert(test); The content of my onchange event looks like this and cannot be triggered (the Ajax debug does not show any debug either: wicketThrottler .throttle( 'filterField', 500, function() { if (function() { return Wicket.$('filterText36a') != null; }.bind(this)()) { Wicket.showIncrementally('ajaxIndicator'); } var wcall = wicketAjaxPost( './search?19-1.IBehaviorListener.0-ticketTable-noRefreshTopToolbars-toolbars-98-searchHeader-9-filterField-filterText', wicketSerialize(Wicket.$('filterText36a')), function() { ; Wicket.hideIncrementally('ajaxIndicator'); }.bind(this), function() { ; Wicket.hideIncrementally('ajaxIndicator'); }.bind(this), function() { if (!function() { return Wicket.$('filterText36a') != null; }.bind(this)()) { Wicket.hideIncrementally('ajaxIndicator'); } return Wicket.$('filterText36a') != null; }.bind(this)); }.bind(this)); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Behavior-triggered-by-Ajax-tp4652238p4652289.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
Autocomplete Problem on Chrome
Hello, I have a problem at autocomplete on Chrome. We have a customized textfield that is autocomplteted with values from a list. Each time after user input text, a list of values appears, and after the user chose one, it can again type text and the behaviour repeats. It acts as a multiple select. It works fine on Firefox, but on chrome only the first option can be chose. The list doesn't appear at second time. It appears only if the component loses focus. We are using wicket autocomplete features to customize it. Does anyone know what is the problem, or can offer a solution? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Autocomplete-Problem-on-Chrome-tp4652290.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: Autocomplete Problem on Chrome
Sounds like a JavaScript problem for which we would have to see the code in order to help you. Why don't you instead try using Select2 integrated in Wicket by Igor Vayngerg: https://github.com/ivaynberg Direct link to his Select2 project on Github: https://github.com/ivaynberg/select2 To see some live demo of Select2: http://ivaynberg.github.com/select2/ I think what you're describing is the Tagging Support example. ~ Thank you, Paul Bors -Original Message- From: cosmindumy [mailto:cosmind...@yahoo.com] Sent: Monday, September 24, 2012 10:27 AM To: users@wicket.apache.org Subject: Autocomplete Problem on Chrome Hello, I have a problem at autocomplete on Chrome. We have a customized textfield that is autocomplteted with values from a list. Each time after user input text, a list of values appears, and after the user chose one, it can again type text and the behaviour repeats. It acts as a multiple select. It works fine on Firefox, but on chrome only the first option can be chose. The list doesn't appear at second time. It appears only if the component loses focus. We are using wicket autocomplete features to customize it. Does anyone know what is the problem, or can offer a solution? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Autocomplete-Problem-on-Chrome-tp 4652290.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
Wicket 6 + EJB
Hello Everyone. I have a question about how to include EJB into my wicket web application. When I was looking for solution for this problem in google, I have found two ways to solve it: 1) Extend my Application class from org.jboss.weld.wicket.WeldApplication and then simply add @Inject annotation to my bean. or 2) Use getComponentInstantiationListeners().add((IComponentInstantiationListener) new JavaEEComponentInjector(this)); in init method in my Application class and then add @EJB annotation to my bean But libraries that I need to do this became depracated in this version of Wicket (v.6) and don't work at all. Can somebody give me an advice how to solve my problem? Thank's. Michael. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-EJB-tp4652286.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 + EJB
https://github.com/wicketstuff/core/wiki/Java-EE-Inject allows injecting EJBs, etc. in wicket-6 applications. 2012/9/24 Michael Zhavzharov mzhavzha...@alee.ru Hello Everyone. I have a question about how to include EJB into my wicket web application. When I was looking for solution for this problem in google, I have found two ways to solve it: 1) Extend my Application class from org.jboss.weld.wicket.WeldApplication and then simply add @Inject annotation to my bean. or 2) Use getComponentInstantiationListeners().add((IComponentInstantiationListener) new JavaEEComponentInjector(this)); in init method in my Application class and then add @EJB annotation to my bean But libraries that I need to do this became depracated in this version of Wicket (v.6) and don't work at all. Can somebody give me an advice how to solve my problem? Thank's. Michael. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-EJB-tp4652286.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 + EJB
Prefer to use the wicket-cdi module. *Bruno Borges* (11) 99564-9058 *www.brunoborges.com* On Mon, Sep 24, 2012 at 1:33 PM, heapifyman heapify...@gmail.com wrote: https://github.com/wicketstuff/core/wiki/Java-EE-Inject allows injecting EJBs, etc. in wicket-6 applications. 2012/9/24 Michael Zhavzharov mzhavzha...@alee.ru Hello Everyone. I have a question about how to include EJB into my wicket web application. When I was looking for solution for this problem in google, I have found two ways to solve it: 1) Extend my Application class from org.jboss.weld.wicket.WeldApplication and then simply add @Inject annotation to my bean. or 2) Use getComponentInstantiationListeners().add((IComponentInstantiationListener) new JavaEEComponentInjector(this)); in init method in my Application class and then add @EJB annotation to my bean But libraries that I need to do this became depracated in this version of Wicket (v.6) and don't work at all. Can somebody give me an advice how to solve my problem? Thank's. Michael. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-EJB-tp4652286.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 + EJB
Thank you, heapifyman! Your post solved my problem! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-EJB-tp4652286p4652297.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 + EJB
Thank you, Bruno! I will choose from this two frameworks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-EJB-tp4652286p4652298.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