JavaScript slow load time
I'm having a strange problem with page load times slowing down significantly. Its strange but it seems related to the total size of the JavaScript contribution being made to the header. We include common JavaScript required by all of our pages in a base class (things like jquery). In total there are six JavaScript files included. If I clear my browser cache and refresh the page, the load time is on the order of 25 seconds. Once cached, the page takes no time to load. If I choose any three JavaScript files at random and exclude them the same test runs very fast. It makes no difference which ones I pick. I also combined all the JavaScript into one big file and tried a single include. This was also very slow. The combined size of the JavaScript is 123KB. I already looked over this post that seemed to have addressed some related issues: http://markmail.org/thread/44hui777oz7rlg4w#query:+page:1+mid:j63mkcqiv2h7qsrq+state:results I am currently testing with: wicket 4.1.19 (also tried 4.1.21 with identical results) Java 1.6.0_33 Tomcat 6.0.26 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/JavaScript-slow-load-time-tp4652273.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
Avoid panel's extra div
Hi wickers I am using a lot of panels in my wicket webapp, with the usual add(new MyPanel(myPanel)); div wicket:id=myPanel!-- here goes wicket panel stuff--/div But I was thinking if there is a wicket tag that can avoid using the extra panel, like wicket:panel id=myPanel!-- here goes wicket panel stuff and enclosing wicket tag is not present on result page--/wicket I've tried with wicket:panel, wicket:container, wicket:enclosure with no luck... I'm wrong or there's a way.. ? Thanks !! Oscar Besga Arcauz - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Avoid panel's extra div
Hi Oscar, If I understand, the problem is that the div of the parent page is rendered, right? If so, you can decide to not render the parent component's tag by using myPanel.getRenderBodyOnly(true); Hope this helps, Sebastien. On Sun, Sep 23, 2012 at 4:17 PM, Oscar Besga Arcauz obe...@isdefe.eswrote: Hi wickers I am using a lot of panels in my wicket webapp, with the usual add(new MyPanel(myPanel)); div wicket:id=myPanel!-- here goes wicket panel stuff--/div But I was thinking if there is a wicket tag that can avoid using the extra panel, like wicket:panel id=myPanel!-- here goes wicket panel stuff and enclosing wicket tag is not present on result page--/wicket I've tried with wicket:panel, wicket:container, wicket:enclosure with no luck... I'm wrong or there's a way.. ? Thanks !! Oscar Besga Arcauz - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Avoid panel's extra div
oops: setRenderBodyOnly(true); On Sun, Sep 23, 2012 at 4:53 PM, Sebastien seb...@gmail.com wrote: Hi Oscar, If I understand, the problem is that the div of the parent page is rendered, right? If so, you can decide to not render the parent component's tag by using myPanel.getRenderBodyOnly(true); Hope this helps, Sebastien. On Sun, Sep 23, 2012 at 4:17 PM, Oscar Besga Arcauz obe...@isdefe.eswrote: Hi wickers I am using a lot of panels in my wicket webapp, with the usual add(new MyPanel(myPanel)); div wicket:id=myPanel!-- here goes wicket panel stuff--/div But I was thinking if there is a wicket tag that can avoid using the extra panel, like wicket:panel id=myPanel!-- here goes wicket panel stuff and enclosing wicket tag is not present on result page--/wicket I've tried with wicket:panel, wicket:container, wicket:enclosure with no luck... I'm wrong or there's a way.. ? Thanks !! Oscar Besga Arcauz - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Avoid panel's extra div
Perfect !!! Thanks !!! Oscar Besga Arcauz -Sebastien seb...@gmail.com escribió: - Para: users@wicket.apache.org De: Sebastien seb...@gmail.com Fecha: 23/09/2012 16:55 Asunto: Re: Avoid panel's extra div oops: setRenderBodyOnly(true); On Sun, Sep 23, 2012 at 4:53 PM, Sebastien seb...@gmail.com wrote: Hi Oscar, If I understand, the problem is that the div of the parent page is rendered, right? If so, you can decide to not render the parent component's tag by using myPanel.getRenderBodyOnly(true); Hope this helps, Sebastien. On Sun, Sep 23, 2012 at 4:17 PM, Oscar Besga Arcauz obe...@isdefe.eswrote: Hi wickers I am using a lot of panels in my wicket webapp, with the usual add(new MyPanel(myPanel)); div wicket:id=myPanel!-- here goes wicket panel stuff--/div But I was thinking if there is a wicket tag that can avoid using the extra panel, like wicket:panel id=myPanel!-- here goes wicket panel stuff and enclosing wicket tag is not present on result page--/wicket I've tried with wicket:panel, wicket:container, wicket:enclosure with no luck... I'm wrong or there's a way.. ? Thanks !! Oscar Besga Arcauz - 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: Datepicker with range selection support
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 On 22/09/12 19:00, Sebastien wrote: Hi Sebastien. wicket-jquery-ui has the goal to integrate jQuery UI widgets as Wicket components; but it's also designed to integrate (easily, I guess) any jQuery plugins (that's what I tend to evince in the tutorial series...). So, I played around with the fox-run-software (range-)date-picker... I noticed that the (kind-of) drop-down box which displays the date-picker is not shipped in the library and should therefore be achieved out of the box, as stated here: http://www.foxrunsoftware.net/articles/javascript/date-range-picker-similar-to-google-analytics/ Given this, I did integrate two components (for both Wicket 1.5.8 Wicket 6.0.0): The first one is a RangeDatePicker, which is designed - when used alone - to be an 'inline' widget, with an ajax behavior triggered on 'change' event. This component can serves as base for more complex component, like a google-analytics-date-picker (you will notice that the change event is triggered on every date click... A merge request - that provide an 'onRangeChanged' event - is in stand-by since a month and has therefore not been merged yet). The second component relies on this first one and on a TextField to make the RangeDatePickerTextField (which indeed is a FormComponent). It should be closed to the component you are looking for... http://www.7thweb.net/wicket-jquery-ui/plugins/datepicker/RangeDatePickerTextFieldPage If it fits your needs, you can either use it (released as com.googlecode.wicket-jquery-ui:jquery-ui-plugin:1.2.3-SNAPSHOT) or have a look at github project to see how it works. Sure, do not hesitate to have a look at the other integrations as well (wicket-select2 is a prime example, and the other jQuery integrations too). If you have any questions, do not hesitate to use the forum (you may find the link on the demo site's homepage) Best regards, Sebastien. On Fri, Sep 21, 2012 at 4:37 PM, Sébastien Gautrin sebastien.gaut...@gmail.com wrote: Well, If you make a tutorial about creating a plugin using wicket-jquery-ui, even though it'll be for wicket 6, it should be relatively simply adaptable to do the same for wicket 1.5 (unless there's a huge lot of changes between the two for wicket-jquery-ui which is quite possible considering wicket 6 comes with jquery support unlike 1.5). I'll take a look at your current how tos for wicket-jquery-ui (we don't use wicket-jquery-ui for the moment - we have a few components using wiquery and a couple very old components using jquery-ui in a crappy way), but that's always interesting to see what's out there and how it works. I'll take a closer look on wicket-select2 as well, as I suppose it could be a good inspiration to integrate the fox run software datepicker library (which is not using jquery-ui). Regards, Sébastien Sebastien wrote: Hi again, Well... I was looking for a jQuery plugin for the 3rd part of my HowTo's, about creating a plugin using wicket-jquery-ui. Maybe will I play with that one in the coming days... (just note that it will be over Wicket 6) Regards, Sebastien. - 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
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 On 22/09/12 19:00, Sebastien wrote: Hi Sebastien. wicket-jquery-ui has the goal to integrate jQuery UI widgets as Wicket components; but it's also designed to integrate (easily, I guess) any jQuery plugins (that's what I tend to evince in the tutorial series...). So, I played around with the fox-run-software (range-)date-picker... I noticed that the (kind-of) drop-down box which displays the date-picker is not shipped in the library and should therefore be achieved out of the box, as stated here: http://www.foxrunsoftware.net/**articles/javascript/date-** range-picker-similar-to-**google-analytics/http://www.foxrunsoftware.net/articles/javascript/date-range-picker-similar-to-google-analytics/ Given this, I did integrate two components (for both Wicket 1.5.8 Wicket 6.0.0): The first one is a RangeDatePicker, which is designed - when used alone - to be an 'inline' widget, with an ajax behavior triggered on 'change' event. This component can serves as base for more complex component, like a google-analytics-date-picker..**.. (you will notice that the change event is triggered on every date click... A merge request - that provide an 'onRangeChanged' event - is in stand-by since a month and has therefore not been merged yet). The second component relies on this first one and on a TextField to make the RangeDatePickerTextField (which indeed is a FormComponent). It should be closed to the component you are looking for... http://www.7thweb.net/wicket-**jquery-ui/plugins/datepicker/** RangeDatePickerTextFieldPagehttp://www.7thweb.net/wicket-jquery-ui/plugins/datepicker/RangeDatePickerTextFieldPage If it fits your needs, you can either use it (released as com.googlecode.wicket-jquery-**ui:jquery-ui-plugin:1.2.3-**SNAPSHOT) or have a look at github project to see how it works. Sure, do not hesitate to have a look at the other integrations as well (wicket-select2 is a prime example, and the other jQuery integrations too). If you have any questions, do not hesitate to use the forum (you may find the link on the demo site's homepage) Best regards, Sebastien. On Fri, Sep 21, 2012 at 4:37 PM, Sébastien Gautrin sebastien.gaut...@gmail.com wrote: Well, If you make a tutorial about creating a plugin using wicket-jquery-ui, even though it'll be for wicket 6, it should be relatively simply adaptable to do the same for wicket 1.5 (unless there's a huge lot of changes between the two for wicket-jquery-ui which is quite possible considering wicket 6 comes with jquery support unlike 1.5). I'll take a look at your current how tos for wicket-jquery-ui (we don't use wicket-jquery-ui for the moment - we have a few components using wiquery and a couple very old components using jquery-ui in a crappy way), but that's always interesting to see what's out there and how it works. I'll take a closer look on wicket-select2 as well, as I suppose it could be a good inspiration to integrate the fox run software datepicker library (which is not using jquery-ui). Regards, Sébastien Sebastien wrote: Hi again, Well... I was looking for a jQuery plugin for the 3rd part of my HowTo's, about creating a plugin using wicket-jquery-ui. Maybe will I play with that one in the coming days... (just note that it will be over Wicket 6) Regards, Sebastien. --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanks regards James Selvakumar
Re: How to create a dashboard with draggable widgets?
It's exciting to be part of wicket community. Thanks a lot friends for your enthusiastic responses. I will go through the resources you have shared. On Fri, Sep 21, 2012 at 6:13 PM, Decebal Suiu decebal.s...@asf.ro wrote: Hi I will release today or Monday a wicket-dashboard project on github. This project it's an open source project (Apache license) based on the dashboard implementations from nextserver (for a live demo see http://http://demo.next-reports.com/ user:demo, password:demo). I used jquery sortable from wiquery (in another project I uesd jqwicket) for dragdrop. When user stop on dragdrop a widget, a js function calls a wicket behavior with a json (as parameter) that contains the position (column and row) for each widget. I have a implementation for widgets like charts (openflashchart), text, pivot (see https://github.com/decebals/wicket-pivot) Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-create-a-dashboard-with-draggable-widgets-tp4652210p4652218.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 -- Thanks regards James Selvakumar