Re: ListView highlight selected row
Igor, thanks you've helped me a lot...but now i repaint the whole table and on every onComponentTag i update the class if the item is selected or not. I see in the debugger that onComponentTag and the tag.put(class, selected) but it is not rendered. What do i do wrong?? Thanks!! This is my code: public class HomePage extends BasePage { private KlantContact selected = new KlantContact(); private Panel detailPanel = new DetailPanel(details, selected); private PageableListViewKlantContact listView = null; private ListKlantContact klantContacten = null; @SpringBean private KlantContactDAO dao; public HomePage(PageParameters parameters) { String bsn = parameters.getString(bsn); InjectorHolder.getInjector().inject(this); final WebMarkupContainer tabel = new WebMarkupContainer(tabel); klantContacten = dao.geefKlantContactenVanDeLaatste2Maanden(bsn, new LocalDateTime()); listView = new PageableListViewKlantContact(zoekresultaat, klantContacten, 5) { private static final long serialVersionUID = 1L; @Override protected ListItemKlantContact newItem(int index) { ListItemKlantContact item = new ListItemKlantContact(index, getListItemModel(getModel(), index)) { private static final long serialVersionUID = 1L; @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); if (getModelObject() == selected) { tag.put(class, welselected); } else { tag.put(class, notselected); } } }; item.setOutputMarkupId(true); return item; } @Override protected void populateItem(final ListItemKlantContact item) { KlantContact contact = item.getModelObject(); final AjaxFallbackLinkKlantContact contactDatumLink = new AjaxFallbackLinkKlantContact( contactdatumlink) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { // het geselecteerde KlantContact bepalen selected = (KlantContact) getParent() .getDefaultModelObject(); // het detailpanel vervangen met een nieuw detailpanel // waar de gelecteerde klantcontact details op komen. DetailPanel replacement = new DetailPanel(details, selected); replacement.setOutputMarkupId(true); detailPanel.replaceWith(replacement); detailPanel = replacement; if (target != null) { target.addComponent(detailPanel); // render de listview opnieuw om de selected css te zetten target.addComponent(tabel); } } }; contactDatumLink.add(new Label(contactdatumlinklabel, new PropertyModelKlantContact(contact, getContactDatumTijdDDMMYYHHMM))); item.add(contactDatumLink); item.add(new Label(soort, contact.getContactWijze())); item.add(new Label(omschrijving, contact .getOmschrijving())); }
Re: Just launched - www.onmydoorstep.com.au
Very well done, but you can do something about the home page banner like making the images fade into each other better. Regards, Kimotho On Wed, May 19, 2010 at 2:14 AM, Zilvinas Vilutis cika...@gmail.com wrote: Actually you CAN test it locally, just you need to configure that you need this feature in your FB app in FB itself. Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Tue, May 18, 2010 at 2:29 PM, Richard Nichols r...@visural.com wrote: I pretty much used the code from https://cwiki.apache.org/WICKET/adding-facebook-connect.html You need to set up the /xd_reciever.htm for it to work correctly (take a look at the facebook connect api docs), either using a Wicket mapped resource, or using a servlet filter to return it. The other trap is that you can't test it locally. I spent an hour trying to debug why it wasn't working - the only reason was the API will not connect from any host other than the one registered in your Facebook App Config. If you try from localhost it just opens your site inside the Facebook login popup - really unhelpful (an error would be nice). If you follow the wiki article though, it should be fairly easy to get going. On 18 May 2010 22:56, Fernando Wermus fernando.wer...@gmail.com wrote: I need a hand with facebook connect and wicket in some weeks. Could you share your wicket facebook code? I imagine it is pretty easy. thanks in advance On Mon, May 17, 2010 at 10:31 PM, Richard Nichols r...@visural.com wrote: Hey all, Just thought fellow Wicketeers might be interested to take a look at a site I have just launched built 100% with Wicket - http://www.onmydoorstep.com.au/ The site is a community portal for people living in Victoria, Australia and displays government data about every suburb, city and town in the state. It also allows users to find government services and business nearby and submit community events/festivals and ask questions of other users. It integrates Wicket with Facebook Connect, Google Maps, Google Charts, Google's Weather API, plus on the backend, warp-persist, Guice and Hibernate/JPA. I also made extensive use of http://code.google.com/p/visural-wicket Anyhow - happy to answer any questions about the above technologies and the experience of building the site with Wicket. Also welcome feedback criticism should you have some :) cheers, Richard. -- Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ListView highlight selected row
try doing the tag.put(class, foo) BEFORE the super.onComponentTag - which is where the tag is rendered -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 19, 2010 at 1:48 AM, JeroenWolff jeroen.wo...@gmail.com wrote: Igor, thanks you've helped me a lot...but now i repaint the whole table and on every onComponentTag i update the class if the item is selected or not. I see in the debugger that onComponentTag and the tag.put(class, selected) but it is not rendered. What do i do wrong?? Thanks!! This is my code: public class HomePage extends BasePage { private KlantContact selected = new KlantContact(); private Panel detailPanel = new DetailPanel(details, selected); private PageableListViewKlantContact listView = null; private ListKlantContact klantContacten = null; @SpringBean private KlantContactDAO dao; public HomePage(PageParameters parameters) { String bsn = parameters.getString(bsn); InjectorHolder.getInjector().inject(this); final WebMarkupContainer tabel = new WebMarkupContainer(tabel); klantContacten = dao.geefKlantContactenVanDeLaatste2Maanden(bsn, new LocalDateTime()); listView = new PageableListViewKlantContact(zoekresultaat, klantContacten, 5) { private static final long serialVersionUID = 1L; @Override protected ListItemKlantContact newItem(int index) { ListItemKlantContact item = new ListItemKlantContact(index, getListItemModel(getModel(), index)) { private static final long serialVersionUID = 1L; @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); if (getModelObject() == selected) { tag.put(class, welselected); } else { tag.put(class, notselected); } } }; item.setOutputMarkupId(true); return item; } @Override protected void populateItem(final ListItemKlantContact item) { KlantContact contact = item.getModelObject(); final AjaxFallbackLinkKlantContact contactDatumLink = new AjaxFallbackLinkKlantContact( contactdatumlink) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { // het geselecteerde KlantContact bepalen selected = (KlantContact) getParent() .getDefaultModelObject(); // het detailpanel vervangen met een nieuw detailpanel // waar de gelecteerde klantcontact details op komen. DetailPanel replacement = new DetailPanel(details, selected); replacement.setOutputMarkupId(true); detailPanel.replaceWith(replacement); detailPanel = replacement; if (target != null) { target.addComponent(detailPanel); // render de listview opnieuw om de selected css te zetten target.addComponent(tabel); } } }; contactDatumLink.add(new Label(contactdatumlinklabel, new PropertyModelKlantContact(contact, getContactDatumTijdDDMMYYHHMM))); item.add(contactDatumLink); item.add(new Label(soort, contact.getContactWijze())); item.add(new Label(omschrijving, contact .getOmschrijving())); } }; tabel.setOutputMarkupId(true);
Re: Another Wicket Site
No doubt of a nicer alpha version. Keep it up. On Tue, May 18, 2010 at 4:54 PM, Ayodeji Aladejebi aladej...@gmail.comwrote: Hi all, just to announce another wicket project I am working on. we just launched the beta version http://www.nelexnigeria.com -- Aladejebi Ayodeji A., DabarObjects Solutions Phone: +234 9 875 1763 Mobile: +234 803 589 1780 Email: d...@dabarobjects.com Web: www.dabarobjects.com -- Ajayi S . Yinka +2348022684477
Re: drag and drop
Hi, I'm working on a wicket-project (1.4) and need to implement some dragdrop features. Could you give me some current links of tutorials to start with. I also don't know which technology to choose: YUI, DOJO, scriptaculous ??? Thank you for your help Bernd -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p375.html Sent from the Wicket - User 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
SV: Request Https page
https://localhost:8080/test Typically, a container will have a HTTPS-enabled connector on a different port; in Glassfish by default it is 8181, on Tomcat it is by default disabled but seems to have the value 8443 in a default server.xml (443 being the assigned port that you need root/admin privileges to open). So if you enable it on Tomcat it would be https://localhost:8443/test - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AW: drag and drop
Perhaps you could try jWicket from wicketstuff http://www.wicketstuff.org/ (site is down at the moment). You could check aout the source from http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jwicket-parent and build the project with maven install Stefan -Ursprüngliche Nachricht- Von: DerBernd [mailto:beha...@web.de] Gesendet: Mi 19.05.2010 09:26 An: users@wicket.apache.org Betreff: Re: drag and drop Hi, I'm working on a wicket-project (1.4) and need to implement some dragdrop features. Could you give me some current links of tutorials to start with. I also don't know which technology to choose: YUI, DOJO, scriptaculous ??? Thank you for your help Bernd -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p375.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: drag and drop
Hi Bernd, I would use YUI or give it a try to [1] as: 1-scriptacoulous has the problem (for IE) mentioned on this thread (disclaimer: I don't know if it has been fixed after this tread was created and taht was long ago)/ 2-jQuery DD is also broken for IE after AJAX replacements (Stefan Lindner will surely confirm this). You can find this explained in others threads on this list and on jQuery forum. It seems the same issue has been reported over and over and they do not fix it:-(. I think Stefan has patched the jquery.js file to get it working for his jWicket project. This problem is present on WiQuery (as their jquery hasn't been patched: which IMHO is the right thing to do). 4- I haven't tried [1] but I remember seen a working demo of it. 5-I haven't tried DOJO. As for YUI I had to do some tricks to get it working (again for IE) in combination with AYAX replacements (I used it for a grid whose columns could be reordered via DD). References, 1-http://code.google.com/p/wicket-dnd/ On Wed, May 19, 2010 at 9:26 AM, DerBernd beha...@web.de wrote: Hi, I'm working on a wicket-project (1.4) and need to implement some dragdrop features. Could you give me some current links of tutorials to start with. I also don't know which technology to choose: YUI, DOJO, scriptaculous ??? Thank you for your help Bernd -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p375.html Sent from the Wicket - User 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
AW: drag and drop
Ernesto Reinaldo wrote 2-jQuery DD is also broken for IE after AJAX replacements (Stefan Lindner will surely confirm this). You can find this explained in others threads on this list and on jQuery forum. It seems the same issue has been reported over and over and they do not fix it:-(. I think Stefan has patched the jquery.js file to get it working for his jWicket project. This problem is present on WiQuery (as their jquery hasn't been patched: which IMHO is the right thing to do). That's correct. The bug is fixed by a patch for jquery in jWicket. No problems with broken AjaxBehaviors in IE. This point (DD or other effects stop to work after an Ajax update) is always worth a closer look if you decide to use any javascript framework. I had the same problem with an early Wicket-Dojo package. And I noticed similar problems with orther functioins than DD in some javasript frameworks. No one trys to re-invent the wheel. Many frameworks use code fragments from other frameworks and general problems spread all over these frameworks. Stefan -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Mi 19.05.2010 09:54 An: users@wicket.apache.org Betreff: Re: drag and drop Hi Bernd, I would use YUI or give it a try to [1] as: 1-scriptacoulous has the problem (for IE) mentioned on this thread (disclaimer: I don't know if it has been fixed after this tread was created and taht was long ago)/ 2-jQuery DD is also broken for IE after AJAX replacements (Stefan Lindner will surely confirm this). You can find this explained in others threads on this list and on jQuery forum. It seems the same issue has been reported over and over and they do not fix it:-(. I think Stefan has patched the jquery.js file to get it working for his jWicket project. This problem is present on WiQuery (as their jquery hasn't been patched: which IMHO is the right thing to do). 4- I haven't tried [1] but I remember seen a working demo of it. 5-I haven't tried DOJO. As for YUI I had to do some tricks to get it working (again for IE) in combination with AYAX replacements (I used it for a grid whose columns could be reordered via DD). References, 1-http://code.google.com/p/wicket-dnd/ On Wed, May 19, 2010 at 9:26 AM, DerBernd beha...@web.de wrote: Hi, I'm working on a wicket-project (1.4) and need to implement some dragdrop features. Could you give me some current links of tutorials to start with. I also don't know which technology to choose: YUI, DOJO, scriptaculous ??? Thank you for your help Bernd -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p375.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SEVERE:Pagemap null is still locked by: Thread
if you have a test case please make a jira issue and attach your sample. It is strange because in onBeginRequest of a request cycle there is no page locked what so ever. So i dont see how this is related. On Wed, May 19, 2010 at 00:49, Ayodeji Aladejebi aladej...@gmail.comwrote: I notice this: After 3 minutes the Pagemap null is still locked by: Thread[http-8084-2,5,main], giving up trying to get the page for path: 2:topAdverts:advertListCont What happened was that I called ((WebRequestCycle) WebRequestCycle.get()).getWebRequest().getQueryString() within onBeginRequest of RequestCycle. This is what normally leads to this problem On Fri, May 7, 2010 at 9:57 PM, Ayodeji Aladejebi aladej...@gmail.com wrote: version 1.4.6 on windows vista running on tomcat 6.0.26 On Wed, May 5, 2010 at 5:43 PM, Johan Compagner jcompag...@gmail.com wrote: hmm looking at the stack of the of that thread that has the lock on the page map then it seems to me that that shouldnt happen, because that thread is doing nothing anymore if the stack dump of that thread is really the right one. Because that just seems to be in a waiting state in a tomcat pool So then it is more that there is some exception in front of that maybe that somehow didnt release the pagemap What version of wicket do you use? On Tue, May 4, 2010 at 23:40, Ayodeji Aladejebi aladej...@gmail.com wrote: SEVERE: org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is still locked by: Thread[http-8084-7,5,main], giving up trying to get the page for path: 2 Begin of stack trace of Thread[http-8084-7,5,main] java.lang.Object.wait(Native Method) java.lang.Object.wait(Object.java:485) org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1511) org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1536) java.lang.Thread.run(Thread.java:619) End of stack trace of Thread[http-8084-7,5,main] org.apache.wicket.protocol.http.request.InvalidUrlException: org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is still locked by: Thread[http-8084-7,5,main], giving up trying to get the page for path: 2 Begin of stack trace of Thread[http-8084-7,5,main] java.lang.Object.wait(Native Method) java.lang.Object.wait(Object.java:485) org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1511) org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1536) java.lang.Thread.run(Thread.java:619) End of stack trace of Thread[http-8084-7,5,main] -- Any tips I
Re: Exempt pages from pagemap
Are your models static instead of LoadableDetachable and/or PropertyModels? Martijn On Tue, May 18, 2010 at 10:38 PM, Loren Cole loren.c...@gmail.com wrote: I've got a couple of pages which display data that changes often and I want to be sure that when a user hits refresh they get a fresh new copy of that page. Unfortunately, if I've used setResponsePage(new MyPage(params); to get to these pages, then a refresh does not update the data, while hitting the back button and resubmitting or clicking a link to the bookmarkable page does. Is there a way I can simply exempt these pages from the cache using wicket 1.3.7? Thanks, Loren -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.7 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: drag and drop
I used wicketstuff-jwicket with SUCCESS. It is based on jQuey, is a non intrusive, extremly easy to use library. Istvan --- On Wed, 5/19/10, DerBernd beha...@web.de wrote: From: DerBernd beha...@web.de Subject: Re: drag and drop To: users@wicket.apache.org Date: Wednesday, May 19, 2010, 10:26 AM Hi, I'm working on a wicket-project (1.4) and need to implement some dragdrop features. Could you give me some current links of tutorials to start with. I also don't know which technology to choose: YUI, DOJO, scriptaculous ??? Thank you for your help Bernd -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p375.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: drag and drop
I can confirm, that it _IS_ patched, dragdrop works on IE. Istvan ... think Stefan has patched the jquery.js file to get it working for his jWicket project. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: drag and drop
Hi Istvan, Don't take me wrong but: can you confirm that any other third party plugins you want to integrate with your application will work with the patched version of jquery? I know Stefan has tested a lot his fix but you cannot be 100% sure that this fix will not brake other untested functionality (that was built against the original jquery). I want to make clear that I'm NOT trying to imply that there is something wrong with Stefan's fix, it's just that I do prefer NOT to use jquery DD till they officially fix it: which does not seem to be any time soon if one judge their reaction to the issue I have created at their forum and the many times the issue has been reported. Best, Ernesto On Wed, May 19, 2010 at 12:32 PM, Stefan Jozsa stefan_...@yahoo.com wrote: I can confirm, that it _IS_ patched, dragdrop works on IE. Istvan ... think Stefan has patched the jquery.js file to get it working for his jWicket project. - 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: drag and drop
Can you provide a link to the issue? I'll vote for it. Maybe lots of other people on this list could do the same. ;-) On May 19, 2010, at 8:14 PM, Ernesto Reinaldo Barreiro wrote: Hi Istvan, Don't take me wrong but: can you confirm that any other third party plugins you want to integrate with your application will work with the patched version of jquery? I know Stefan has tested a lot his fix but you cannot be 100% sure that this fix will not brake other untested functionality (that was built against the original jquery). I want to make clear that I'm NOT trying to imply that there is something wrong with Stefan's fix, it's just that I do prefer NOT to use jquery DD till they officially fix it: which does not seem to be any time soon if one judge their reaction to the issue I have created at their forum and the many times the issue has been reported. Best, Ernesto On Wed, May 19, 2010 at 12:32 PM, Stefan Jozsa stefan_...@yahoo.com wrote: I can confirm, that it _IS_ patched, dragdrop works on IE. Istvan ... think Stefan has patched the jquery.js file to get it working for his jWicket project. - 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: drag and drop
If you have a patch, should be easy to get it accepted to jquery, no? 2010/5/19 Ernesto Reinaldo Barreiro reier...@gmail.com: Hi Istvan, Don't take me wrong but: can you confirm that any other third party plugins you want to integrate with your application will work with the patched version of jquery? I know Stefan has tested a lot his fix but you cannot be 100% sure that this fix will not brake other untested functionality (that was built against the original jquery). I want to make clear that I'm NOT trying to imply that there is something wrong with Stefan's fix, it's just that I do prefer NOT to use jquery DD till they officially fix it: which does not seem to be any time soon if one judge their reaction to the issue I have created at their forum and the many times the issue has been reported. Best, Ernesto On Wed, May 19, 2010 at 12:32 PM, Stefan Jozsa stefan_...@yahoo.com wrote: I can confirm, that it _IS_ patched, dragdrop works on IE. Istvan ... think Stefan has patched the jquery.js file to get it working for his jWicket project. - 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: Image Upload Using TinyMCE Within Wicket Framework
Hi. Whay do you want to change exactly Muro ? Temporary path is set to javax.servlet.context.tempdir. Image must be temporary uploaded somewhere to show it in editor later. This src in img tag points into ImageUploadPanel which implements IResourceListener. So the ImageUploadPanel is called when a resource is requested. (resource is created from image which is uploaded to temp directory). Do you want to have a static path like ../../resources/images/locked.gif ? W dniu 2010-05-18 17:52, Muro Copenhagen pisze: Hi... I am facing a new problem with the TinyMCE upload image, i hope someone can assist me on. I can see that the ImageUpload tinymce example uses a temporary path to store the images... If i want to store them on a static folder, like the folder: c:\images How would i achive that ? If can to overwrite you getTemporaryDirPath() folder and set it to c:\images, the upload works fine. But the reference to the image, is store with the wicket session reference. Here is the an example on how it is stored: img src=?wicket:interface=:25:editCaseForm:uploadPanel::IResourceListener::amp;filename=testerman.JPGamp;contenttype=image/jpeg alt= / How would i manage to store it a manner so it is not session dependent...? Any help will be appreciated... Best Regards Muso On Fri, May 14, 2010 at 3:03 PM, Muro Copenhagencopenha...@gmail.comwrote: Hi Michal Great thanks for the help.. Best Regards Muro 2010/5/14 Michał Letyńskimletyn...@consol.pl Hi. Yes you are right the last released version is 1.4.1. So you must build it localy. W dniu 2010-05-14 11:19, Muro Copenhagen pisze: Hi Michal I appreciate you're effort spelling things out. I am still not sure on how to get it to work. When i add this dependency to my project it won't work: dependency groupIdorg.wicketstuff/groupId artifactIdtinymce/artifactId version1.4.7-SNAPSHOT/version /dependency And that makes sense since i can't find that version in the repo: http://wicketstuff.org/maven/repository So how would i get my project to use the tinymce version 1.4.7-SNAPSHOT ? Maybe it's a silly question... but i am not sure how to make it work... Best Regards Muro 2010/5/13 Michał Letyńskimletyn...@consol.pl Hi. Its commited to trunk and in pom we have 1.4.7-SNAPSHOT so it should be available ... W dniu 2010-05-12 15:23, Muro Copenhagen pisze: Hi again... I guess a new release of wicket-stuff tinymce has to be made in order to use it... The current release 1.4-rc7 misses the changes you have commited... Who can make a new release of wicket-stuff tinymce so we can use the commited code ? Best Regards Muro 2010/5/12 Michał Letyńskimletyn...@consol.pl Hi. Its one of tiny examples: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples W dniu 2010-05-12 12:40, Muro Copenhagen pisze: Hi Michael, That is a great example. But you mentioned that you have commited the sample to wicket-stuff. I can't find it anywhere so can you please send a link or something... Best regards Muro On Tue, May 4, 2010 at 2:49 PM, Robert Kimothokimot...@gmail.com wrote: You are right I have a wicket path in src and it looks like this 'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif' this is what you get submitted to the server, but the image does not get displayed. Can you guide me to using the IResourceListener or getting the emoticon displayed at the client side. Regards, Kimotho. 2010/5/4 Michał Letyńskimletyn...@consol.pl Hi. If you have images in tiny with external src it should work but if you have in src a wicket path you must change it (to component which will get the image look at IResourceListener) before displainng image in label, multilinelabel, etc. W dniu 2010-05-03 09:10, Robert Kimotho pisze: When I submit a form with an emoticon from the fullfeatured tinymce, the image doesn't get displayed in the destination only the text. any suggestions, I've been stuck here for a while now. 2010/5/1 新希望软件 -- 俞宏伟nhsoft@gmail.com image upload example run failuer, the application throwsNoClassDefFoundError . WicketMessage: Can't instantiate page using constructor public wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage() Root cause: java.lang.NoClassDefFoundError: wicket/contrib/tinymce/image/ImageUploadPanel at wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.init(ImageUploadTinyMCEPage.java:42) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Re: drag and drop
Hi David, The issue is [1]. I discovered it while I was working on [2]: a grid component allowing to sort columns by dragging them. That feature works fine in any other browser I have tested (FF, Chrome, Opera) except any version (I have tested) of IE. I was able to reproduce the issue using Wicket AJAX replaceOuterHTML function but not with simple DOM manipulations as they asked... With simple DOM manipulations I was able to produce other errors:-( I was planing to try to reproduce it using jquery's own AJAX but other more pressing matters made me set it aside:-(. I think Stefan posted his fix on that thread ([1]) but they didn't react... Probably Stefan can further comment on the nature of the issue as it seems he did a more thorough investigation while building his fix. Best, Ernesto References. 1-http://forum.jquery.com/topic/drag-and-drop-problems-after-ajax-refresh-on-ie 2-http://code.google.com/p/wijqgrid/source/browse/#svn/trunk/wijqgrid/src/main/java/com/jquery/antilia/grid On Wed, May 19, 2010 at 1:16 PM, David Leangen wic...@leangen.net wrote: Can you provide a link to the issue? I'll vote for it. Maybe lots of other people on this list could do the same. ;-) On May 19, 2010, at 8:14 PM, Ernesto Reinaldo Barreiro wrote: Hi Istvan, Don't take me wrong but: can you confirm that any other third party plugins you want to integrate with your application will work with the patched version of jquery? I know Stefan has tested a lot his fix but you cannot be 100% sure that this fix will not brake other untested functionality (that was built against the original jquery). I want to make clear that I'm NOT trying to imply that there is something wrong with Stefan's fix, it's just that I do prefer NOT to use jquery DD till they officially fix it: which does not seem to be any time soon if one judge their reaction to the issue I have created at their forum and the many times the issue has been reported. Best, Ernesto On Wed, May 19, 2010 at 12:32 PM, Stefan Jozsa stefan_...@yahoo.com wrote: I can confirm, that it _IS_ patched, dragdrop works on IE. Istvan ... think Stefan has patched the jquery.js file to get it working for his jWicket project. - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: drag and drop
Stefan has a patch. He posted his patch on the issue I created... See my previous e-mail Ernesto On Wed, May 19, 2010 at 1:22 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: If you have a patch, should be easy to get it accepted to jquery, no? 2010/5/19 Ernesto Reinaldo Barreiro reier...@gmail.com: Hi Istvan, Don't take me wrong but: can you confirm that any other third party plugins you want to integrate with your application will work with the patched version of jquery? I know Stefan has tested a lot his fix but you cannot be 100% sure that this fix will not brake other untested functionality (that was built against the original jquery). I want to make clear that I'm NOT trying to imply that there is something wrong with Stefan's fix, it's just that I do prefer NOT to use jquery DD till they officially fix it: which does not seem to be any time soon if one judge their reaction to the issue I have created at their forum and the many times the issue has been reported. Best, Ernesto On Wed, May 19, 2010 at 12:32 PM, Stefan Jozsa stefan_...@yahoo.com wrote: I can confirm, that it _IS_ patched, dragdrop works on IE. Istvan ... think Stefan has patched the jquery.js file to get it working for his jWicket project. - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
JSR286 portlets and events
I am using wicket to implement some JSR286 portlets. How can I implement communication between different portlets using events? There's some ideas at http://jaibeermalik.wordpress.com/tag/wicket-portlet-development/ but I don't entirely understand how the catching of event should be handled when using wicket. In the example TestDetailsPortlet receives an event and then //Do whatever you want to do with the event handling part. What does this step actually mean? If my page is handled by ExamplePage.java extends org.apache.wicket.markup.html.WebPage, how does TestDetailsPortlet tell ExamplePage to update it's contents or whatever it needs to do? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/JSR286-portlets-and-events-tp706p706.html Sent from the Wicket - User 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: Image Upload Using TinyMCE Within Wicket Framework
Hi Michal, Thanks for the reply Yes that was my idea. It would be better with a static reference to a localdrive folder, so the folder works as a image repository. I am working on a wepapp where users has to login...the problem i am experiencing is that the the image reference is temporary, based on user login etc. So if user logs in, uploads the image, the next time the user logs in the reference to the image would be wrong. Also a different user would not be able to see the same image... Therefore i was thinking on a solution like this one integrated with youre code...: http://dotev.blogspot.com/2009/11/serving-images-and-other-resources-with.html And images could be referenced as in the link...: resources/global/images?id=image105 Would it be possible ? Best Regards Muro 2010/5/19 Michał Letyński mletyn...@consol.pl Hi. Whay do you want to change exactly Muro ? Temporary path is set to javax.servlet.context.tempdir. Image must be temporary uploaded somewhere to show it in editor later. This src in img tag points into ImageUploadPanel which implements IResourceListener. So the ImageUploadPanel is called when a resource is requested. (resource is created from image which is uploaded to temp directory). Do you want to have a static path like ../../resources/images/locked.gif ? W dniu 2010-05-18 17:52, Muro Copenhagen pisze: Hi... I am facing a new problem with the TinyMCE upload image, i hope someone can assist me on. I can see that the ImageUpload tinymce example uses a temporary path to store the images... If i want to store them on a static folder, like the folder: c:\images How would i achive that ? If can to overwrite you getTemporaryDirPath() folder and set it to c:\images, the upload works fine. But the reference to the image, is store with the wicket session reference. Here is the an example on how it is stored: img src=?wicket:interface=:25:editCaseForm:uploadPanel::IResourceListener::amp;filename=testerman.JPGamp;contenttype=image/jpeg alt= / How would i manage to store it a manner so it is not session dependent...? Any help will be appreciated... Best Regards Muso On Fri, May 14, 2010 at 3:03 PM, Muro Copenhagencopenha...@gmail.com wrote: Hi Michal Great thanks for the help.. Best Regards Muro 2010/5/14 Michał Letyńskimletyn...@consol.pl Hi. Yes you are right the last released version is 1.4.1. So you must build it localy. W dniu 2010-05-14 11:19, Muro Copenhagen pisze: Hi Michal I appreciate you're effort spelling things out. I am still not sure on how to get it to work. When i add this dependency to my project it won't work: dependency groupIdorg.wicketstuff/groupId artifactIdtinymce/artifactId version1.4.7-SNAPSHOT/version /dependency And that makes sense since i can't find that version in the repo: http://wicketstuff.org/maven/repository So how would i get my project to use the tinymce version 1.4.7-SNAPSHOT ? Maybe it's a silly question... but i am not sure how to make it work... Best Regards Muro 2010/5/13 Michał Letyńskimletyn...@consol.pl Hi. Its commited to trunk and in pom we have 1.4.7-SNAPSHOT so it should be available ... W dniu 2010-05-12 15:23, Muro Copenhagen pisze: Hi again... I guess a new release of wicket-stuff tinymce has to be made in order to use it... The current release 1.4-rc7 misses the changes you have commited... Who can make a new release of wicket-stuff tinymce so we can use the commited code ? Best Regards Muro 2010/5/12 Michał Letyńskimletyn...@consol.pl Hi. Its one of tiny examples: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples W dniu 2010-05-12 12:40, Muro Copenhagen pisze: Hi Michael, That is a great example. But you mentioned that you have commited the sample to wicket-stuff. I can't find it anywhere so can you please send a link or something... Best regards Muro On Tue, May 4, 2010 at 2:49 PM, Robert Kimothokimot...@gmail.com wrote: You are right I have a wicket path in src and it looks like this 'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif' this is what you get submitted to the server, but the image does not get displayed. Can you guide me to using the IResourceListener or getting the emoticon displayed at the client side. Regards, Kimotho. 2010/5/4 Michał Letyńskimletyn...@consol.pl Hi. If you have images in tiny with external src it should work but if you have in src a wicket path you must change it (to component which will get the image look at IResourceListener) before displainng image in label, multilinelabel, etc. W dniu 2010-05-03 09:10, Robert Kimotho pisze: When I submit a form with an emoticon from the fullfeatured tinymce,
Ajax wizard and page anchor
Hi all, I've upgraded my wizard to use the AjaxWizardButtonBar etc. as suggested by a couple of other people. It works great, so thanks! My problem is more html/css oriented. All wizard pages seem to be anchored around the buttons, so if I have a longer wizard page, then the user is not directed to the top of the page. Instead the user sees the bottom, and he/she needs to scroll up to start reading. I would like to keep the button bar at the bottom of the page, but is there any way I can jump to the top of the next page when the user clicks the next button? Thanks for your help, Natalie -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-wizard-and-page-anchor-tp2223007p2223007.html Sent from the Wicket - User 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
Help me speed up my Wicket
Hi! HELP! I have a problem. I have a table with 20 columns and 30 rows (calendar). The problem is that it renders very slowly in browsers. The reason is not directly network speed but it is the VERY heavy markup. Each table cell has 3 ajax components and the ajax call functions are loong. I have tested to strip away all ajax calls and it renders pretty OK. Now what I am thinking is that is there a way to shorten the wicket ajax call urls? Any practical suggestions? I tried also shortening the wicket-id names but there still remains quite some blob of excess markup that could brobably be in some reusable function?? Here is a sample markup of just one single cell and you can immagine how big of a blob it is when having 20x30 cells (copy-pasted from firebug): td class=order_confirmed id=id84be1span style=position: relative; float: left;select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('memo-8-3')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('memo-8-3') != null;}.bind(this)); id=memo-8-3 name=p:f:ss:s:t:w:3:m:8:o style=position: absolute; display: none; z-index: 2; class=show-hide option value=/option option value=99255 selected=selectedOption/option option value=200345Another option/option /select/span div id=c4be2 input type=text onchange=if (!wicketAjaxBusy()) { overrideShow = true;var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('s4714')),function() { overrideShow = false;}.bind(this),function() { overrideShow = false;}.bind(this), function() {return Wicket.$('s4714') != null;}.bind(this));} tabindex=008003 maxlength=1024 id=s4714 name=p:f:ss:s:t:w:3:m:8:c:s value=10-18 style=border: 1px solid rgb(0, 255, 0);select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('r4715')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('r4715') != null;}.bind(this)); id=r4715 name=p:f:ss:s:t:w:3:m:8:c:r style=position: absolute; display: none; class=colors show-hide size=1 option value=new stuff/option option value=BOption/option /selectscript type=text/javascriptlt;!--/*--gt;lt;![CDATA[/*gt;lt;!--*/ initializeShowHide('s4714','#r4715'); /*--gt;]]gt;*//script div class=right-sidea id=i4716 href=#Info/ascript type=text/javascriptlt;!--/*--gt;lt;![CDATA[/*gt;lt;!--*/ initializeShowHide('i4716','#memo-8-3', true); /*--gt;]]gt;*//script /diva onclick=var wcall=wicketSubmitFormById('f4b6d', '', 'p:f:ss:s:t:w:3:m:8:c:c' ,function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$$(this)amp;amp;Wicket.$$('f4b6d')}.bind(this));;; return false; id=c4be3 name=p:f:ss:s:t:w:3:m:8:c:c style=margin: 0pt 1px;img border=0 title=Tyhjennä alt=x src=/images/redcross.png/a /div/td ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Help me speed up my Wicket
The easiest thing would probably to lazy load the rows somehow, how are load time pr row?.. Otherwise you could extract the long inline code into a seperate js and wrap them into induvidual methods, although I do not know if it makes page load faster or there could be other issues. 2010/5/19 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! HELP! I have a problem. I have a table with 20 columns and 30 rows (calendar). The problem is that it renders very slowly in browsers. The reason is not directly network speed but it is the VERY heavy markup. Each table cell has 3 ajax components and the ajax call functions are loong. I have tested to strip away all ajax calls and it renders pretty OK. Now what I am thinking is that is there a way to shorten the wicket ajax call urls? Any practical suggestions? I tried also shortening the wicket-id names but there still remains quite some blob of excess markup that could brobably be in some reusable function?? Here is a sample markup of just one single cell and you can immagine how big of a blob it is when having 20x30 cells (copy-pasted from firebug): td class=order_confirmed id=id84be1span style=position: relative; float: left;select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('memo-8-3')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('memo-8-3') != null;}.bind(this)); id=memo-8-3 name=p:f:ss:s:t:w:3:m:8:o style=position: absolute; display: none; z-index: 2; class=show-hide option value=/option option value=99255 selected=selectedOption/option option value=200345Another option/option /select/span div id=c4be2 input type=text onchange=if (!wicketAjaxBusy()) { overrideShow = true;var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('s4714')),function() { overrideShow = false;}.bind(this),function() { overrideShow = false;}.bind(this), function() {return Wicket.$('s4714') != null;}.bind(this));} tabindex=008003 maxlength=1024 id=s4714 name=p:f:ss:s:t:w:3:m:8:c:s value=10-18 style=border: 1px solid rgb(0, 255, 0);select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('r4715')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('r4715') != null;}.bind(this)); id=r4715 name=p:f:ss:s:t:w:3:m:8:c:r style=position: absolute; display: none; class=colors show-hide size=1 option value=new stuff/option option value=BOption/option /selectscript type=text/javascriptlt;!--/*--gt;lt;![CDATA[/*gt;lt;!--*/ initializeShowHide('s4714','#r4715'); /*--gt;]]gt;*//script div class=right-sidea id=i4716 href=#Info/ascript type=text/javascriptlt;!--/*--gt;lt;![CDATA[/*gt;lt;!--*/ initializeShowHide('i4716','#memo-8-3', true); /*--gt;]]gt;*//script /diva onclick=var wcall=wicketSubmitFormById('f4b6d', '', 'p:f:ss:s:t:w:3:m:8:c:c' ,function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$$(this)amp;amp;Wicket.$$('f4b6d')}.bind(this));;; return false; id=c4be3 name=p:f:ss:s:t:w:3:m:8:c:c style=margin: 0pt 1px;img border=0 title=Tyhjennä alt=x src=/images/redcross.png/a /div/td ** Martin - 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: Help me speed up my Wicket
Hi! Otherwise you could extract the long inline code into a seperate js and wrap them into induvidual methods, although I do not know if it makes page load faster or there could be other issues. I will try somehow the individual function approach. My point is, however, that there is very little unique stuff in the functions. They could probably be reduced into ajaxCall(markup-id) or something. I am using built-in wicket ajaxbehaviors. Has someone done this kind of squeezing before? The easiest thing would probably to lazy load the rows somehow, how are load time pr row?.. Lazy load.. load time doesn't seem to be an issue. It is equally slow to render even if rendered direclty from local hard drive as static file. ** Martin 2010/5/19 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! HELP! I have a problem. I have a table with 20 columns and 30 rows (calendar). The problem is that it renders very slowly in browsers. The reason is not directly network speed but it is the VERY heavy markup. Each table cell has 3 ajax components and the ajax call functions are loong. I have tested to strip away all ajax calls and it renders pretty OK. Now what I am thinking is that is there a way to shorten the wicket ajax call urls? Any practical suggestions? I tried also shortening the wicket-id names but there still remains quite some blob of excess markup that could brobably be in some reusable function?? Here is a sample markup of just one single cell and you can immagine how big of a blob it is when having 20x30 cells (copy-pasted from firebug): td class=order_confirmed id=id84be1span style=position: relative; float: left;select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('memo-8-3')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('memo-8-3') != null;}.bind(this)); id=memo-8-3 name=p:f:ss:s:t:w:3:m:8:o style=position: absolute; display: none; z-index: 2; class=show-hide option value=/option option value=99255 selected=selectedOption/option option value=200345Another option/option /select/span div id=c4be2 input type=text onchange=if (!wicketAjaxBusy()) { overrideShow = true;var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('s4714')),function() { overrideShow = false;}.bind(this),function() { overrideShow = false;}.bind(this), function() {return Wicket.$('s4714') != null;}.bind(this));} tabindex=008003 maxlength=1024 id=s4714 name=p:f:ss:s:t:w:3:m:8:c:s value=10-18 style=border: 1px solid rgb(0, 255, 0);select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('r4715')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('r4715') != null;}.bind(this)); id=r4715 name=p:f:ss:s:t:w:3:m:8:c:r style=position: absolute; display: none; class=colors show-hide size=1 option value=new stuff/option option value=BOption/option /selectscript type=text/javascriptlt;!--/*--gt;lt;![CDATA[/*gt;lt;!--*/ initializeShowHide('s4714','#r4715'); /*--gt;]]gt;*//script div class=right-sidea id=i4716 href=#Info/ascript type=text/javascriptlt;!--/*--gt;lt;![CDATA[/*gt;lt;!--*/ initializeShowHide('i4716','#memo-8-3', true); /*--gt;]]gt;*//script /diva onclick=var wcall=wicketSubmitFormById('f4b6d', '', 'p:f:ss:s:t:w:3:m:8:c:c' ,function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$$(this)amp;amp;Wicket.$$('f4b6d')}.bind(this));;; return false; id=c4be3 name=p:f:ss:s:t:w:3:m:8:c:c style=margin: 0pt 1px;img border=0 title=Tyhjennä alt=x src=/images/redcross.png/a /div/td ** Martin - 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: Help me speed up my Wicket
If you've already proven that removing the AJAX removes the contention, I'd go with Nino's otherwise route. That was my first guess. Depending on what you're doing with those AJAX calls, you could probably make it so that you have one to three of them for the entire table, wrapped in a custom function. (You don't have to extract them to a separate JS). Then each row would shorten it's JavaScript output to myCustomFunction(rowIndex). If you need some help, let us know. I posted a message on this list a week or so ago showing how to wrap existing AJAX in a custom function. That might help, too. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 19, 2010 at 10:51 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: The easiest thing would probably to lazy load the rows somehow, how are load time pr row?.. Otherwise you could extract the long inline code into a seperate js and wrap them into induvidual methods, although I do not know if it makes page load faster or there could be other issues. 2010/5/19 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! HELP! I have a problem. I have a table with 20 columns and 30 rows (calendar). The problem is that it renders very slowly in browsers. The reason is not directly network speed but it is the VERY heavy markup. Each table cell has 3 ajax components and the ajax call functions are loong. I have tested to strip away all ajax calls and it renders pretty OK. Now what I am thinking is that is there a way to shorten the wicket ajax call urls? Any practical suggestions? I tried also shortening the wicket-id names but there still remains quite some blob of excess markup that could brobably be in some reusable function?? Here is a sample markup of just one single cell and you can immagine how big of a blob it is when having 20x30 cells (copy-pasted from firebug): td class=order_confirmed id=id84be1span style=position: relative; float: left;select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('memo-8-3')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('memo-8-3') != null;}.bind(this)); id=memo-8-3 name=p:f:ss:s:t:w:3:m:8:o style=position: absolute; display: none; z-index: 2; class=show-hide option value=/option option value=99255 selected=selectedOption/option option value=200345Another option/option /select/span div id=c4be2 input type=text onchange=if (!wicketAjaxBusy()) { overrideShow = true;var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('s4714')),function() { overrideShow = false;}.bind(this),function() { overrideShow = false;}.bind(this), function() {return Wicket.$('s4714') != null;}.bind(this));} tabindex=008003 maxlength=1024 id=s4714 name=p:f:ss:s:t:w:3:m:8:c:s value=10-18 style=border: 1px solid rgb(0, 255, 0);select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('r4715')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('r4715') != null;}.bind(this)); id=r4715 name=p:f:ss:s:t:w:3:m:8:c:r style=position: absolute; display: none; class=colors show-hide size=1 option value=new stuff/option option value=BOption/option /selectscript type=text/javascriptlt;!--/*--gt;lt;![CDATA[/*gt;lt;!--*/ initializeShowHide('s4714','#r4715'); /*--gt;]]gt;*//script div class=right-sidea id=i4716 href=#Info/ascript type=text/javascriptlt;!--/*--gt;lt;![CDATA[/*gt;lt;!--*/ initializeShowHide('i4716','#memo-8-3', true); /*--gt;]]gt;*//script /diva onclick=var wcall=wicketSubmitFormById('f4b6d', '', 'p:f:ss:s:t:w:3:m:8:c:c' ,function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$$(this)amp;amp;Wicket.$$('f4b6d')}.bind(this));;; return false; id=c4be3 name=p:f:ss:s:t:w:3:m:8:c:c style=margin: 0pt 1px;img border=0 title=Tyhjennä alt=x src=/images/redcross.png/a /div/td ** Martin - 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: Help me speed up my Wicket
Hi! Yes.. my question now is: how to easily extract the JS? It is from onchangeajaxbehavior etc. I would like to continue using wicket standard onchangeajaxbehavior but somehow override the way it injects the js into the component tag. Suggestions to accomplish this? ** Martin 2010/5/19 Jeremy Thomerson jer...@wickettraining.com: If you've already proven that removing the AJAX removes the contention, I'd go with Nino's otherwise route. That was my first guess. Depending on what you're doing with those AJAX calls, you could probably make it so that you have one to three of them for the entire table, wrapped in a custom function. (You don't have to extract them to a separate JS). Then each row would shorten it's JavaScript output to myCustomFunction(rowIndex). If you need some help, let us know. I posted a message on this list a week or so ago showing how to wrap existing AJAX in a custom function. That might help, too. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 19, 2010 at 10:51 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: The easiest thing would probably to lazy load the rows somehow, how are load time pr row?.. Otherwise you could extract the long inline code into a seperate js and wrap them into induvidual methods, although I do not know if it makes page load faster or there could be other issues. 2010/5/19 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! HELP! I have a problem. I have a table with 20 columns and 30 rows (calendar). The problem is that it renders very slowly in browsers. The reason is not directly network speed but it is the VERY heavy markup. Each table cell has 3 ajax components and the ajax call functions are loong. I have tested to strip away all ajax calls and it renders pretty OK. Now what I am thinking is that is there a way to shorten the wicket ajax call urls? Any practical suggestions? I tried also shortening the wicket-id names but there still remains quite some blob of excess markup that could brobably be in some reusable function?? Here is a sample markup of just one single cell and you can immagine how big of a blob it is when having 20x30 cells (copy-pasted from firebug): td class=order_confirmed id=id84be1span style=position: relative; float: left;select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('memo-8-3')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('memo-8-3') != null;}.bind(this)); id=memo-8-3 name=p:f:ss:s:t:w:3:m:8:o style=position: absolute; display: none; z-index: 2; class=show-hide option value=/option option value=99255 selected=selectedOption/option option value=200345Another option/option /select/span div id=c4be2 input type=text onchange=if (!wicketAjaxBusy()) { overrideShow = true;var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('s4714')),function() { overrideShow = false;}.bind(this),function() { overrideShow = false;}.bind(this), function() {return Wicket.$('s4714') != null;}.bind(this));} tabindex=008003 maxlength=1024 id=s4714 name=p:f:ss:s:t:w:3:m:8:c:s value=10-18 style=border: 1px solid rgb(0, 255, 0);select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('r4715')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('r4715') != null;}.bind(this)); id=r4715 name=p:f:ss:s:t:w:3:m:8:c:r style=position: absolute; display: none; class=colors show-hide size=1 option value=new stuff/option option value=BOption/option /selectscript type=text/javascriptlt;!--/*--gt;lt;![CDATA[/*gt;lt;!--*/ initializeShowHide('s4714','#r4715'); /*--gt;]]gt;*//script div class=right-sidea id=i4716 href=#Info/ascript type=text/javascriptlt;!--/*--gt;lt;![CDATA[/*gt;lt;!--*/ initializeShowHide('i4716','#memo-8-3', true); /*--gt;]]gt;*//script /diva onclick=var wcall=wicketSubmitFormById('f4b6d', '', 'p:f:ss:s:t:w:3:m:8:c:c' ,function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$$(this)amp;amp;Wicket.$$('f4b6d')}.bind(this));;; return false; id=c4be3 name=p:f:ss:s:t:w:3:m:8:c:c style=margin: 0pt 1px;img border=0 title=Tyhjennä alt=x src=/images/redcross.png/a /div/td ** Martin - 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: Help me speed up my Wicket
Well, if the rendering of all that extra JS is what's causing the problem, I'd try to limit it to one rendering of the (slightly-modified) behavior. You can basically render something like this: function somethingInMyTableChanged(rowInd) { return wicketAjaxGet('{standardBehaviorUrl}rowIndex=' + rowInd); } Then, you add a simple behavior to your row items like: new SimpleAttributeModifier(onchange, true, new ModelString(return somethingInMyTableChanged( + item.getRowIndex() + );); In your behavior, now you have to do a little extra work (don't use an onchangeajaxbehavior, just use a custom defaultajaxbehavior or something like that). You'll need to call RequestCycle.get().getRequest().getServletRequest().getQueryParameters().get(rowIndex) and use that to see which row changed. Anyway, it should work, but it's a little less clean than you normally would do in Wicket. BUT - if you have proven that it's the rendering of all that extra AJAX string stuff that's slowing you down, then it's worth doing. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 19, 2010 at 11:09 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Yes.. my question now is: how to easily extract the JS? It is from onchangeajaxbehavior etc. I would like to continue using wicket standard onchangeajaxbehavior but somehow override the way it injects the js into the component tag. Suggestions to accomplish this? ** Martin 2010/5/19 Jeremy Thomerson jer...@wickettraining.com: If you've already proven that removing the AJAX removes the contention, I'd go with Nino's otherwise route. That was my first guess. Depending on what you're doing with those AJAX calls, you could probably make it so that you have one to three of them for the entire table, wrapped in a custom function. (You don't have to extract them to a separate JS). Then each row would shorten it's JavaScript output to myCustomFunction(rowIndex). If you need some help, let us know. I posted a message on this list a week or so ago showing how to wrap existing AJAX in a custom function. That might help, too. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 19, 2010 at 10:51 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: The easiest thing would probably to lazy load the rows somehow, how are load time pr row?.. Otherwise you could extract the long inline code into a seperate js and wrap them into induvidual methods, although I do not know if it makes page load faster or there could be other issues. 2010/5/19 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! HELP! I have a problem. I have a table with 20 columns and 30 rows (calendar). The problem is that it renders very slowly in browsers. The reason is not directly network speed but it is the VERY heavy markup. Each table cell has 3 ajax components and the ajax call functions are loong. I have tested to strip away all ajax calls and it renders pretty OK. Now what I am thinking is that is there a way to shorten the wicket ajax call urls? Any practical suggestions? I tried also shortening the wicket-id names but there still remains quite some blob of excess markup that could brobably be in some reusable function?? Here is a sample markup of just one single cell and you can immagine how big of a blob it is when having 20x30 cells (copy-pasted from firebug): td class=order_confirmed id=id84be1span style=position: relative; float: left;select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('memo-8-3')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('memo-8-3') != null;}.bind(this)); id=memo-8-3 name=p:f:ss:s:t:w:3:m:8:o style=position: absolute; display: none; z-index: 2; class=show-hide option value=/option option value=99255 selected=selectedOption/option option value=200345Another option/option /select/span div id=c4be2 input type=text onchange=if (!wicketAjaxBusy()) { overrideShow = true;var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('s4714')),function() { overrideShow = false;}.bind(this),function() { overrideShow = false;}.bind(this), function() {return Wicket.$('s4714') != null;}.bind(this));} tabindex=008003 maxlength=1024 id=s4714 name=p:f:ss:s:t:w:3:m:8:c:s value=10-18 style=border: 1px solid rgb(0, 255, 0);select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('r4715')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('r4715') != null;}.bind(this)); id=r4715 name=p:f:ss:s:t:w:3:m:8:c:r style=position: absolute; display: none; class=colors show-hide size=1 option value=new stuff/option option value=BOption/option /selectscript type=text/javascriptlt;!--/*--gt;lt;![CDATA[/*gt;lt;!--*/
Re: Help me speed up my Wicket
Hmm.. I am afraid of losing the component update processing in onchangeajaxbehavior and its superclasses. Actually the true solution is to leave out the selects completely ,] I wonder if I could render them somewhere else... like bottom of page and then just move them onto the table when displaying them. Hmm.. uh. ** Martin 2010/5/19 Jeremy Thomerson jer...@wickettraining.com: Well, if the rendering of all that extra JS is what's causing the problem, I'd try to limit it to one rendering of the (slightly-modified) behavior. You can basically render something like this: function somethingInMyTableChanged(rowInd) { return wicketAjaxGet('{standardBehaviorUrl}rowIndex=' + rowInd); } Then, you add a simple behavior to your row items like: new SimpleAttributeModifier(onchange, true, new ModelString(return somethingInMyTableChanged( + item.getRowIndex() + );); In your behavior, now you have to do a little extra work (don't use an onchangeajaxbehavior, just use a custom defaultajaxbehavior or something like that). You'll need to call RequestCycle.get().getRequest().getServletRequest().getQueryParameters().get(rowIndex) and use that to see which row changed. Anyway, it should work, but it's a little less clean than you normally would do in Wicket. BUT - if you have proven that it's the rendering of all that extra AJAX string stuff that's slowing you down, then it's worth doing. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 19, 2010 at 11:09 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Yes.. my question now is: how to easily extract the JS? It is from onchangeajaxbehavior etc. I would like to continue using wicket standard onchangeajaxbehavior but somehow override the way it injects the js into the component tag. Suggestions to accomplish this? ** Martin 2010/5/19 Jeremy Thomerson jer...@wickettraining.com: If you've already proven that removing the AJAX removes the contention, I'd go with Nino's otherwise route. That was my first guess. Depending on what you're doing with those AJAX calls, you could probably make it so that you have one to three of them for the entire table, wrapped in a custom function. (You don't have to extract them to a separate JS). Then each row would shorten it's JavaScript output to myCustomFunction(rowIndex). If you need some help, let us know. I posted a message on this list a week or so ago showing how to wrap existing AJAX in a custom function. That might help, too. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 19, 2010 at 10:51 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: The easiest thing would probably to lazy load the rows somehow, how are load time pr row?.. Otherwise you could extract the long inline code into a seperate js and wrap them into induvidual methods, although I do not know if it makes page load faster or there could be other issues. 2010/5/19 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! HELP! I have a problem. I have a table with 20 columns and 30 rows (calendar). The problem is that it renders very slowly in browsers. The reason is not directly network speed but it is the VERY heavy markup. Each table cell has 3 ajax components and the ajax call functions are loong. I have tested to strip away all ajax calls and it renders pretty OK. Now what I am thinking is that is there a way to shorten the wicket ajax call urls? Any practical suggestions? I tried also shortening the wicket-id names but there still remains quite some blob of excess markup that could brobably be in some reusable function?? Here is a sample markup of just one single cell and you can immagine how big of a blob it is when having 20x30 cells (copy-pasted from firebug): td class=order_confirmed id=id84be1span style=position: relative; float: left;select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('memo-8-3')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('memo-8-3') != null;}.bind(this)); id=memo-8-3 name=p:f:ss:s:t:w:3:m:8:o style=position: absolute; display: none; z-index: 2; class=show-hide option value=/option option value=99255 selected=selectedOption/option option value=200345Another option/option /select/span div id=c4be2 input type=text onchange=if (!wicketAjaxBusy()) { overrideShow = true;var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('s4714')),function() { overrideShow = false;}.bind(this),function() { overrideShow = false;}.bind(this), function() {return Wicket.$('s4714') != null;}.bind(this));} tabindex=008003 maxlength=1024 id=s4714 name=p:f:ss:s:t:w:3:m:8:c:s value=10-18 style=border: 1px solid rgb(0, 255, 0);select onchange=var wcall=wicketAjaxPost('',
Re: Testing AjaxSubmitLink#onSubmit() with WicketTester @L
I'd like to resurrect this old tread because I ran into this issue again. Last time I changed my code to use a regular link to submit the form, but this time the form is on a modal window and has to be submitted with AjaxSubmitLink. My current findings are identical to the ones describes in my previous post (the 4 items). The problem seems to be that the new values that the formTester sets on the form fields do not get bound to the form model and therefore are not visible in onSubmit(). Instead, onSubmit() sees the values from the form model used when the page was rendered. How can I trigger binding of the new values in form fields to the model? Thanks On Mon, Dec 28, 2009 at 2:17 PM, Alec Swan alecs...@gmail.com wrote: I unsuccessfully tried several different ways to invoke the AjaxSubmitLink from my test method. 1. formTester.submit(submitButton) does not call AjaxSubmitLink#onSubmit(AjaxRequestTarget target, Form form) 2. formTester.submitLink(submitButton, false) fails with *org.apache.wicket.WicketRuntimeException: Link panel:referralForm:submitButtonis an AjaxSubmitLink and will not be invoked when AJAX (javascript) is disabled.* 3. tester.clickLink(referralForm:submitButton, true) does not call AjaxSubmitLink#onSubmit(AjaxRequestTarget target, Form form) 4. EnhancedWicketTester.clickAjaxLink(referralForm:submitButton) fails with *junit.framework.AssertionFailedError: component 'ReferralPanel$ReferralForm$2' is not type:Link* This makes sense because AjaxSubmitLink class is not a subclass of Link. So, how do I test AjaxSubmitLink#onSubmit(AjaxRequestTarget target, Form form) method? Thanks, Alec @L On Sun, Dec 27, 2009 at 9:44 AM, Alec Swan alecs...@gmail.com wrote: I have a page with a form and AjaxSubmitLink in the form. I call WicketTester#clickLink(pathToLink, true) to test the code in AjaxSubmitLink#onSubmit(). The call returns with no errors, but AjaxSubmitLink#onSubmit() is never called. Here is a code sample: tester.startPanel(MyPanel.class); final FormTester formTester = tester.newFormTester(FORM_PATH); // Test: Submit form with valid inputs formTester.setValue(company, company); formTester.setValue(phone, phone); *tester.clickLink(SUBMIT_LINK_PATH, true);* Thanks, Alec
Wicket Cobertura problem
Hi I'm quite new to wicket, and I'm having a strange problem. I'm using wicket (1.4.8) with embedded jetty in a large cluster application. Everything works out most of the time, except when I run cobertura test coverage (under maven). Starting my application in every other context yelds the following in the logs: ... 2010-05-19 17:46:03,195 INFO [main] log.Slf4jLog (55): Logging to org.slf4j.impl.Log4jLoggerAdapter(org.eclipse.jetty.util.log) via org.eclipse.jetty.util.log.Slf4jLog 2010-05-19 17:46:03,267 INFO [main] log.Slf4jLog (55): jetty-7.1.0.RC1 2010-05-19 17:46:03,475 INFO [main] log.Slf4jLog (55): NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet 2010-05-19 17:46:03,476 WARN [main] log.Slf4jLog (40): java.lang.ClassNotFoundException: org.eclipse.jetty.jsp.JettyLog 2010-05-19 17:46:03,797 INFO [main] wicket.Application (842): [FloodWebApplication] init: Wicket extensions initializer 2010-05-19 17:46:03,824 INFO [main] wicket.Application (842): [FloodWebApplication] init: Wicket core library initializer 2010-05-19 17:46:03,826 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,827 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,829 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] 2010-05-19 17:46:03,852 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] 2010-05-19 17:46:03,853 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] 2010-05-19 17:46:03,854 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] 2010-05-19 17:46:03,856 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()] 2010-05-19 17:46:03,856 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()] 2010-05-19 17:46:03,857 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()] 2010-05-19 17:46:03,857 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()] 2010-05-19 17:46:03,858 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] 2010-05-19 17:46:03,859 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] 2010-05-19 17:46:03,860 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,860 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,862 INFO [main] http.WebApplication (745): [FloodWebApplication] Started Wicket version 1.4.8 in deployment mode 2010-05-19 17:46:03,918 INFO [main] log.Slf4jLog (55): Started socketconnec...@0.0.0.0:60130 ... However when starting under cobertura test coverage: ... 2010-05-19 17:52:21,607 INFO [main] log.Slf4jLog (55): Logging to
Re: Another Wicket Site
nice love seeing Nigerians doing great things keep it up . On Tue, May 18, 2010 at 10:55 PM, Ajayi Yinka iamstyaj...@googlemail.com wrote: No doubt of a nicer alpha version. Keep it up. On Tue, May 18, 2010 at 4:54 PM, Ayodeji Aladejebi aladej...@gmail.comwrote: Hi all, just to announce another wicket project I am working on. we just launched the beta version http://www.nelexnigeria.com -- Aladejebi Ayodeji A., DabarObjects Solutions Phone: +234 9 875 1763 Mobile: +234 803 589 1780 Email: d...@dabarobjects.com Web: www.dabarobjects.com -- Ajayi S . Yinka +2348022684477 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Help me speed up my Wicket
2010/5/19 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! Otherwise you could extract the long inline code into a seperate js and wrap them into induvidual methods, although I do not know if it makes page load faster or there could be other issues. I will try somehow the individual function approach. My point is, however, that there is very little unique stuff in the functions. They could probably be reduced into ajaxCall(markup-id) or something. I am using built-in wicket ajaxbehaviors. Has someone done this kind of squeezing before? The easiest thing would probably to lazy load the rows somehow, how are load time pr row?.. Lazy load.. load time doesn't seem to be an issue. It is equally slow to render even if rendered direclty from local hard drive as static file. I know, thats why you only can compare with an page without rows, the lazyloading part should add rows induvidually (that should reduce the feeling of slow rendering), however it also depends on how ajaxy your page are to start with... ** Martin 2010/5/19 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! HELP! I have a problem. I have a table with 20 columns and 30 rows (calendar). The problem is that it renders very slowly in browsers. The reason is not directly network speed but it is the VERY heavy markup. Each table cell has 3 ajax components and the ajax call functions are loong. I have tested to strip away all ajax calls and it renders pretty OK. Now what I am thinking is that is there a way to shorten the wicket ajax call urls? Any practical suggestions? I tried also shortening the wicket-id names but there still remains quite some blob of excess markup that could brobably be in some reusable function?? Here is a sample markup of just one single cell and you can immagine how big of a blob it is when having 20x30 cells (copy-pasted from firebug): td class=order_confirmed id=id84be1span style=position: relative; float: left;select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('memo-8-3')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('memo-8-3') != null;}.bind(this)); id=memo-8-3 name=p:f:ss:s:t:w:3:m:8:o style=position: absolute; display: none; z-index: 2; class=show-hide option value=/option option value=99255 selected=selectedOption/option option value=200345Another option/option /select/span div id=c4be2 input type=text onchange=if (!wicketAjaxBusy()) { overrideShow = true;var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('s4714')),function() { overrideShow = false;}.bind(this),function() { overrideShow = false;}.bind(this), function() {return Wicket.$('s4714') != null;}.bind(this));} tabindex=008003 maxlength=1024 id=s4714 name=p:f:ss:s:t:w:3:m:8:c:s value=10-18 style=border: 1px solid rgb(0, 255, 0);select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('r4715')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('r4715') != null;}.bind(this)); id=r4715 name=p:f:ss:s:t:w:3:m:8:c:r style=position: absolute; display: none; class=colors show-hide size=1 option value=new stuff/option option value=BOption/option /selectscript type=text/javascriptlt;!--/*--gt;lt;![CDATA[/*gt;lt;!--*/ initializeShowHide('s4714','#r4715'); /*--gt;]]gt;*//script div class=right-sidea id=i4716 href=#Info/ascript type=text/javascriptlt;!--/*--gt;lt;![CDATA[/*gt;lt;!--*/ initializeShowHide('i4716','#memo-8-3', true); /*--gt;]]gt;*//script /diva onclick=var wcall=wicketSubmitFormById('f4b6d', '', 'p:f:ss:s:t:w:3:m:8:c:c' ,function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$$(this)amp;amp;Wicket.$$('f4b6d')}.bind(this));;; return false; id=c4be3 name=p:f:ss:s:t:w:3:m:8:c:c style=margin: 0pt 1px;img border=0 title=Tyhjennä alt=x src=/images/redcross.png/a /div/td ** Martin - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Help me speed up my Wicket
hmm could'nt just use a custom ajax decorator? Or override the js part of the onchangeajaxbehaviour? 2010/5/19 Jeremy Thomerson jer...@wickettraining.com: Well, if the rendering of all that extra JS is what's causing the problem, I'd try to limit it to one rendering of the (slightly-modified) behavior. You can basically render something like this: function somethingInMyTableChanged(rowInd) { return wicketAjaxGet('{standardBehaviorUrl}rowIndex=' + rowInd); } Then, you add a simple behavior to your row items like: new SimpleAttributeModifier(onchange, true, new ModelString(return somethingInMyTableChanged( + item.getRowIndex() + );); In your behavior, now you have to do a little extra work (don't use an onchangeajaxbehavior, just use a custom defaultajaxbehavior or something like that). You'll need to call RequestCycle.get().getRequest().getServletRequest().getQueryParameters().get(rowIndex) and use that to see which row changed. Anyway, it should work, but it's a little less clean than you normally would do in Wicket. BUT - if you have proven that it's the rendering of all that extra AJAX string stuff that's slowing you down, then it's worth doing. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 19, 2010 at 11:09 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Yes.. my question now is: how to easily extract the JS? It is from onchangeajaxbehavior etc. I would like to continue using wicket standard onchangeajaxbehavior but somehow override the way it injects the js into the component tag. Suggestions to accomplish this? ** Martin 2010/5/19 Jeremy Thomerson jer...@wickettraining.com: If you've already proven that removing the AJAX removes the contention, I'd go with Nino's otherwise route. That was my first guess. Depending on what you're doing with those AJAX calls, you could probably make it so that you have one to three of them for the entire table, wrapped in a custom function. (You don't have to extract them to a separate JS). Then each row would shorten it's JavaScript output to myCustomFunction(rowIndex). If you need some help, let us know. I posted a message on this list a week or so ago showing how to wrap existing AJAX in a custom function. That might help, too. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 19, 2010 at 10:51 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: The easiest thing would probably to lazy load the rows somehow, how are load time pr row?.. Otherwise you could extract the long inline code into a seperate js and wrap them into induvidual methods, although I do not know if it makes page load faster or there could be other issues. 2010/5/19 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! HELP! I have a problem. I have a table with 20 columns and 30 rows (calendar). The problem is that it renders very slowly in browsers. The reason is not directly network speed but it is the VERY heavy markup. Each table cell has 3 ajax components and the ajax call functions are loong. I have tested to strip away all ajax calls and it renders pretty OK. Now what I am thinking is that is there a way to shorten the wicket ajax call urls? Any practical suggestions? I tried also shortening the wicket-id names but there still remains quite some blob of excess markup that could brobably be in some reusable function?? Here is a sample markup of just one single cell and you can immagine how big of a blob it is when having 20x30 cells (copy-pasted from firebug): td class=order_confirmed id=id84be1span style=position: relative; float: left;select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('memo-8-3')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('memo-8-3') != null;}.bind(this)); id=memo-8-3 name=p:f:ss:s:t:w:3:m:8:o style=position: absolute; display: none; z-index: 2; class=show-hide option value=/option option value=99255 selected=selectedOption/option option value=200345Another option/option /select/span div id=c4be2 input type=text onchange=if (!wicketAjaxBusy()) { overrideShow = true;var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('s4714')),function() { overrideShow = false;}.bind(this),function() { overrideShow = false;}.bind(this), function() {return Wicket.$('s4714') != null;}.bind(this));} tabindex=008003 maxlength=1024 id=s4714 name=p:f:ss:s:t:w:3:m:8:c:s value=10-18 style=border: 1px solid rgb(0, 255, 0);select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('r4715')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('r4715') != null;}.bind(this)); id=r4715 name=p:f:ss:s:t:w:3:m:8:c:r style=position: absolute; display: none; class=colors
Re: Wicket Cobertura problem
what are you using to build with maven, ant or? 2010/5/19 David Alves dal...@student.dei.uc.pt: Hi I'm quite new to wicket, and I'm having a strange problem. I'm using wicket (1.4.8) with embedded jetty in a large cluster application. Everything works out most of the time, except when I run cobertura test coverage (under maven). Starting my application in every other context yelds the following in the logs: ... 2010-05-19 17:46:03,195 INFO [main] log.Slf4jLog (55): Logging to org.slf4j.impl.Log4jLoggerAdapter(org.eclipse.jetty.util.log) via org.eclipse.jetty.util.log.Slf4jLog 2010-05-19 17:46:03,267 INFO [main] log.Slf4jLog (55): jetty-7.1.0.RC1 2010-05-19 17:46:03,475 INFO [main] log.Slf4jLog (55): NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet 2010-05-19 17:46:03,476 WARN [main] log.Slf4jLog (40): java.lang.ClassNotFoundException: org.eclipse.jetty.jsp.JettyLog 2010-05-19 17:46:03,797 INFO [main] wicket.Application (842): [FloodWebApplication] init: Wicket extensions initializer 2010-05-19 17:46:03,824 INFO [main] wicket.Application (842): [FloodWebApplication] init: Wicket core library initializer 2010-05-19 17:46:03,826 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,827 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,829 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] 2010-05-19 17:46:03,852 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] 2010-05-19 17:46:03,853 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] 2010-05-19 17:46:03,854 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] 2010-05-19 17:46:03,856 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()] 2010-05-19 17:46:03,856 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()] 2010-05-19 17:46:03,857 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()] 2010-05-19 17:46:03,857 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()] 2010-05-19 17:46:03,858 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] 2010-05-19 17:46:03,859 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] 2010-05-19 17:46:03,860 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,860 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,862 INFO [main] http.WebApplication (745): [FloodWebApplication] Started Wicket version 1.4.8 in deployment mode 2010-05-19 17:46:03,918 INFO [main] log.Slf4jLog (55): Started socketconnec...@0.0.0.0:60130
Re: Help me speed up my Wicket
Hi! hmm could'nt just use a custom ajax decorator? Or override the js part of the onchangeajaxbehaviour? Hmm.. sounds like a good starting point... thanks. BTW: I totally lost you on that lazy loading thing... the user would like the page to load in a snap and using it to be like a snap. How would your proposed lazy loading be implemented? ** Martin 2010/5/19 Jeremy Thomerson jer...@wickettraining.com: Well, if the rendering of all that extra JS is what's causing the problem, I'd try to limit it to one rendering of the (slightly-modified) behavior. You can basically render something like this: function somethingInMyTableChanged(rowInd) { return wicketAjaxGet('{standardBehaviorUrl}rowIndex=' + rowInd); } Then, you add a simple behavior to your row items like: new SimpleAttributeModifier(onchange, true, new ModelString(return somethingInMyTableChanged( + item.getRowIndex() + );); In your behavior, now you have to do a little extra work (don't use an onchangeajaxbehavior, just use a custom defaultajaxbehavior or something like that). You'll need to call RequestCycle.get().getRequest().getServletRequest().getQueryParameters().get(rowIndex) and use that to see which row changed. Anyway, it should work, but it's a little less clean than you normally would do in Wicket. BUT - if you have proven that it's the rendering of all that extra AJAX string stuff that's slowing you down, then it's worth doing. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 19, 2010 at 11:09 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Yes.. my question now is: how to easily extract the JS? It is from onchangeajaxbehavior etc. I would like to continue using wicket standard onchangeajaxbehavior but somehow override the way it injects the js into the component tag. Suggestions to accomplish this? ** Martin 2010/5/19 Jeremy Thomerson jer...@wickettraining.com: If you've already proven that removing the AJAX removes the contention, I'd go with Nino's otherwise route. That was my first guess. Depending on what you're doing with those AJAX calls, you could probably make it so that you have one to three of them for the entire table, wrapped in a custom function. (You don't have to extract them to a separate JS). Then each row would shorten it's JavaScript output to myCustomFunction(rowIndex). If you need some help, let us know. I posted a message on this list a week or so ago showing how to wrap existing AJAX in a custom function. That might help, too. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 19, 2010 at 10:51 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: The easiest thing would probably to lazy load the rows somehow, how are load time pr row?.. Otherwise you could extract the long inline code into a seperate js and wrap them into induvidual methods, although I do not know if it makes page load faster or there could be other issues. 2010/5/19 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! HELP! I have a problem. I have a table with 20 columns and 30 rows (calendar). The problem is that it renders very slowly in browsers. The reason is not directly network speed but it is the VERY heavy markup. Each table cell has 3 ajax components and the ajax call functions are loong. I have tested to strip away all ajax calls and it renders pretty OK. Now what I am thinking is that is there a way to shorten the wicket ajax call urls? Any practical suggestions? I tried also shortening the wicket-id names but there still remains quite some blob of excess markup that could brobably be in some reusable function?? Here is a sample markup of just one single cell and you can immagine how big of a blob it is when having 20x30 cells (copy-pasted from firebug): td class=order_confirmed id=id84be1span style=position: relative; float: left;select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('memo-8-3')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('memo-8-3') != null;}.bind(this)); id=memo-8-3 name=p:f:ss:s:t:w:3:m:8:o style=position: absolute; display: none; z-index: 2; class=show-hide option value=/option option value=99255 selected=selectedOption/option option value=200345Another option/option /select/span div id=c4be2 input type=text onchange=if (!wicketAjaxBusy()) { overrideShow = true;var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('s4714')),function() { overrideShow = false;}.bind(this),function() { overrideShow = false;}.bind(this), function() {return Wicket.$('s4714') != null;}.bind(this));} tabindex=008003 maxlength=1024 id=s4714 name=p:f:ss:s:t:w:3:m:8:c:s value=10-18 style=border: 1px solid rgb(0, 255, 0);select onchange=var
Re: Wicket Cobertura problem
Hi Nino I'm using maven, it only fails when I run the cobertura:cobertura target. David On May 19, 2010, at 6:57 PM, nino martinez wael wrote: what are you using to build with maven, ant or? 2010/5/19 David Alves dal...@student.dei.uc.pt: Hi I'm quite new to wicket, and I'm having a strange problem. I'm using wicket (1.4.8) with embedded jetty in a large cluster application. Everything works out most of the time, except when I run cobertura test coverage (under maven). Starting my application in every other context yelds the following in the logs: ... 2010-05-19 17:46:03,195 INFO [main] log.Slf4jLog (55): Logging to org.slf4j.impl.Log4jLoggerAdapter(org.eclipse.jetty.util.log) via org.eclipse.jetty.util.log.Slf4jLog 2010-05-19 17:46:03,267 INFO [main] log.Slf4jLog (55): jetty-7.1.0.RC1 2010-05-19 17:46:03,475 INFO [main] log.Slf4jLog (55): NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet 2010-05-19 17:46:03,476 WARN [main] log.Slf4jLog (40): java.lang.ClassNotFoundException: org.eclipse.jetty.jsp.JettyLog 2010-05-19 17:46:03,797 INFO [main] wicket.Application (842): [FloodWebApplication] init: Wicket extensions initializer 2010-05-19 17:46:03,824 INFO [main] wicket.Application (842): [FloodWebApplication] init: Wicket core library initializer 2010-05-19 17:46:03,826 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,827 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,829 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] 2010-05-19 17:46:03,852 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] 2010-05-19 17:46:03,853 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] 2010-05-19 17:46:03,854 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] 2010-05-19 17:46:03,856 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()] 2010-05-19 17:46:03,856 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()] 2010-05-19 17:46:03,857 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()] 2010-05-19 17:46:03,857 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()] 2010-05-19 17:46:03,858 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] 2010-05-19 17:46:03,859 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] 2010-05-19 17:46:03,860 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,860 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,862 INFO [main] http.WebApplication (745):
Re: Help me speed up my Wicket
about the lazyloading, I was thinking to cascade load the rows after page render, it should perform better in theory:)... 2010/5/19 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! hmm could'nt just use a custom ajax decorator? Or override the js part of the onchangeajaxbehaviour? Hmm.. sounds like a good starting point... thanks. BTW: I totally lost you on that lazy loading thing... the user would like the page to load in a snap and using it to be like a snap. How would your proposed lazy loading be implemented? ** Martin 2010/5/19 Jeremy Thomerson jer...@wickettraining.com: Well, if the rendering of all that extra JS is what's causing the problem, I'd try to limit it to one rendering of the (slightly-modified) behavior. You can basically render something like this: function somethingInMyTableChanged(rowInd) { return wicketAjaxGet('{standardBehaviorUrl}rowIndex=' + rowInd); } Then, you add a simple behavior to your row items like: new SimpleAttributeModifier(onchange, true, new ModelString(return somethingInMyTableChanged( + item.getRowIndex() + );); In your behavior, now you have to do a little extra work (don't use an onchangeajaxbehavior, just use a custom defaultajaxbehavior or something like that). You'll need to call RequestCycle.get().getRequest().getServletRequest().getQueryParameters().get(rowIndex) and use that to see which row changed. Anyway, it should work, but it's a little less clean than you normally would do in Wicket. BUT - if you have proven that it's the rendering of all that extra AJAX string stuff that's slowing you down, then it's worth doing. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 19, 2010 at 11:09 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Yes.. my question now is: how to easily extract the JS? It is from onchangeajaxbehavior etc. I would like to continue using wicket standard onchangeajaxbehavior but somehow override the way it injects the js into the component tag. Suggestions to accomplish this? ** Martin 2010/5/19 Jeremy Thomerson jer...@wickettraining.com: If you've already proven that removing the AJAX removes the contention, I'd go with Nino's otherwise route. That was my first guess. Depending on what you're doing with those AJAX calls, you could probably make it so that you have one to three of them for the entire table, wrapped in a custom function. (You don't have to extract them to a separate JS). Then each row would shorten it's JavaScript output to myCustomFunction(rowIndex). If you need some help, let us know. I posted a message on this list a week or so ago showing how to wrap existing AJAX in a custom function. That might help, too. -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 19, 2010 at 10:51 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: The easiest thing would probably to lazy load the rows somehow, how are load time pr row?.. Otherwise you could extract the long inline code into a seperate js and wrap them into induvidual methods, although I do not know if it makes page load faster or there could be other issues. 2010/5/19 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! HELP! I have a problem. I have a table with 20 columns and 30 rows (calendar). The problem is that it renders very slowly in browsers. The reason is not directly network speed but it is the VERY heavy markup. Each table cell has 3 ajax components and the ajax call functions are loong. I have tested to strip away all ajax calls and it renders pretty OK. Now what I am thinking is that is there a way to shorten the wicket ajax call urls? Any practical suggestions? I tried also shortening the wicket-id names but there still remains quite some blob of excess markup that could brobably be in some reusable function?? Here is a sample markup of just one single cell and you can immagine how big of a blob it is when having 20x30 cells (copy-pasted from firebug): td class=order_confirmed id=id84be1span style=position: relative; float: left;select onchange=var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('memo-8-3')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('memo-8-3') != null;}.bind(this)); id=memo-8-3 name=p:f:ss:s:t:w:3:m:8:o style=position: absolute; display: none; z-index: 2; class=show-hide option value=/option option value=99255 selected=selectedOption/option option value=200345Another option/option /select/span div id=c4be2 input type=text onchange=if (!wicketAjaxBusy()) { overrideShow = true;var wcall=wicketAjaxPost('', wicketSerialize(Wicket.$('s4714')),function() { overrideShow = false;}.bind(this),function() { overrideShow = false;}.bind(this), function() {return Wicket.$('s4714') !=
Re: Testing AjaxSubmitLink#onSubmit() with WicketTester @L
I found a way to submit a form with Ajax link in a file attached to Wicket bug #2783: tester.executeAjaxEvent(path:to:ajax:link, onclick) I hope there is a more graceful way to do this. On Wed, May 19, 2010 at 10:38 AM, Alec Swan alecs...@gmail.com wrote: I'd like to resurrect this old tread because I ran into this issue again. Last time I changed my code to use a regular link to submit the form, but this time the form is on a modal window and has to be submitted with AjaxSubmitLink. My current findings are identical to the ones describes in my previous post (the 4 items). The problem seems to be that the new values that the formTester sets on the form fields do not get bound to the form model and therefore are not visible in onSubmit(). Instead, onSubmit() sees the values from the form model used when the page was rendered. How can I trigger binding of the new values in form fields to the model? Thanks On Mon, Dec 28, 2009 at 2:17 PM, Alec Swan alecs...@gmail.com wrote: I unsuccessfully tried several different ways to invoke the AjaxSubmitLink from my test method. 1. formTester.submit(submitButton) does not call AjaxSubmitLink#onSubmit(AjaxRequestTarget target, Form form) 2. formTester.submitLink(submitButton, false) fails with *org.apache.wicket.WicketRuntimeException: Link panel:referralForm:submitButtonis an AjaxSubmitLink and will not be invoked when AJAX (javascript) is disabled.* 3. tester.clickLink(referralForm:submitButton, true) does not call AjaxSubmitLink#onSubmit(AjaxRequestTarget target, Form form) 4. EnhancedWicketTester.clickAjaxLink(referralForm:submitButton) fails with *junit.framework.AssertionFailedError: component 'ReferralPanel$ReferralForm$2' is not type:Link* This makes sense because AjaxSubmitLink class is not a subclass of Link. So, how do I test AjaxSubmitLink#onSubmit(AjaxRequestTarget target, Form form) method? Thanks, Alec @L On Sun, Dec 27, 2009 at 9:44 AM, Alec Swan alecs...@gmail.com wrote: I have a page with a form and AjaxSubmitLink in the form. I call WicketTester#clickLink(pathToLink, true) to test the code in AjaxSubmitLink#onSubmit(). The call returns with no errors, but AjaxSubmitLink#onSubmit() is never called. Here is a code sample: tester.startPanel(MyPanel.class); final FormTester formTester = tester.newFormTester(FORM_PATH); // Test: Submit form with valid inputs formTester.setValue(company, company); formTester.setValue(phone, phone); *tester.clickLink(SUBMIT_LINK_PATH, true);* Thanks, Alec
Re: Wicket Cobertura problem
Strange, I haven't encounter problems like that.. So it works when running mvn test or mvn clean install? 2010/5/19 David Alves dal...@student.dei.uc.pt: Hi Nino I'm using maven, it only fails when I run the cobertura:cobertura target. David On May 19, 2010, at 6:57 PM, nino martinez wael wrote: what are you using to build with maven, ant or? 2010/5/19 David Alves dal...@student.dei.uc.pt: Hi I'm quite new to wicket, and I'm having a strange problem. I'm using wicket (1.4.8) with embedded jetty in a large cluster application. Everything works out most of the time, except when I run cobertura test coverage (under maven). Starting my application in every other context yelds the following in the logs: ... 2010-05-19 17:46:03,195 INFO [main] log.Slf4jLog (55): Logging to org.slf4j.impl.Log4jLoggerAdapter(org.eclipse.jetty.util.log) via org.eclipse.jetty.util.log.Slf4jLog 2010-05-19 17:46:03,267 INFO [main] log.Slf4jLog (55): jetty-7.1.0.RC1 2010-05-19 17:46:03,475 INFO [main] log.Slf4jLog (55): NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet 2010-05-19 17:46:03,476 WARN [main] log.Slf4jLog (40): java.lang.ClassNotFoundException: org.eclipse.jetty.jsp.JettyLog 2010-05-19 17:46:03,797 INFO [main] wicket.Application (842): [FloodWebApplication] init: Wicket extensions initializer 2010-05-19 17:46:03,824 INFO [main] wicket.Application (842): [FloodWebApplication] init: Wicket core library initializer 2010-05-19 17:46:03,826 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,827 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,829 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] 2010-05-19 17:46:03,852 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] 2010-05-19 17:46:03,853 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] 2010-05-19 17:46:03,854 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] 2010-05-19 17:46:03,856 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()] 2010-05-19 17:46:03,856 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()] 2010-05-19 17:46:03,857 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()] 2010-05-19 17:46:03,857 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()] 2010-05-19 17:46:03,858 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] 2010-05-19 17:46:03,859 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] 2010-05-19 17:46:03,860 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,860 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IActivePageBehaviorListener,
Re: Wicket Cobertura problem
Exactly. weird right? I'm not 100% sure that it is a wicket problem (it could be a jetty problem), still I find suspicious that the only stuff missing from the logs when it fails is the wicket stuff. On May 19, 2010, at 8:29 PM, nino martinez wael wrote: Strange, I haven't encounter problems like that.. So it works when running mvn test or mvn clean install? 2010/5/19 David Alves dal...@student.dei.uc.pt: Hi Nino I'm using maven, it only fails when I run the cobertura:cobertura target. David On May 19, 2010, at 6:57 PM, nino martinez wael wrote: what are you using to build with maven, ant or? 2010/5/19 David Alves dal...@student.dei.uc.pt: Hi I'm quite new to wicket, and I'm having a strange problem. I'm using wicket (1.4.8) with embedded jetty in a large cluster application. Everything works out most of the time, except when I run cobertura test coverage (under maven). Starting my application in every other context yelds the following in the logs: ... 2010-05-19 17:46:03,195 INFO [main] log.Slf4jLog (55): Logging to org.slf4j.impl.Log4jLoggerAdapter(org.eclipse.jetty.util.log) via org.eclipse.jetty.util.log.Slf4jLog 2010-05-19 17:46:03,267 INFO [main] log.Slf4jLog (55): jetty-7.1.0.RC1 2010-05-19 17:46:03,475 INFO [main] log.Slf4jLog (55): NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet 2010-05-19 17:46:03,476 WARN [main] log.Slf4jLog (40): java.lang.ClassNotFoundException: org.eclipse.jetty.jsp.JettyLog 2010-05-19 17:46:03,797 INFO [main] wicket.Application (842): [FloodWebApplication] init: Wicket extensions initializer 2010-05-19 17:46:03,824 INFO [main] wicket.Application (842): [FloodWebApplication] init: Wicket core library initializer 2010-05-19 17:46:03,826 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,827 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2010-05-19 17:46:03,829 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] 2010-05-19 17:46:03,852 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] 2010-05-19 17:46:03,853 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] 2010-05-19 17:46:03,854 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] 2010-05-19 17:46:03,856 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()] 2010-05-19 17:46:03,856 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()] 2010-05-19 17:46:03,857 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()] 2010-05-19 17:46:03,857 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()] 2010-05-19 17:46:03,858 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] 2010-05-19 17:46:03,859 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] 2010-05-19 17:46:03,860 INFO [main] wicket.RequestListenerInterface (276): registered listener interface [RequestListenerInterface
Re: How to replace RelativePathPrefixHandler
the javadoc probably has a clue /** * Get the (modifiable) list of IComponentResolvers. * * @see AutoComponentResolver for an example * @return List of ComponentResolvers */ notice the *modifiable* part -igor On Tue, May 18, 2010 at 7:51 PM, b...@actrix.gen.nz wrote: Hi, It looks like Wicket may have the flexibility to replace elements of the chain of IMarkupFilters without changing Wicket itself. How can I replace RelativePathPrefixHandler with my own variant? I have found getPageSettings().getComponentResolvers(); But I am definitely missing the important bits. Many thanks, Bernard - 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: ListView highlight selected row
no, i dont think its rendered in the super called, only prepared for rendering so his code should work just fine. set a breakpoint and see if its being called. also what markup is the listview attached to? -igor On Tue, May 18, 2010 at 11:51 PM, Jeremy Thomerson jer...@wickettraining.com wrote: try doing the tag.put(class, foo) BEFORE the super.onComponentTag - which is where the tag is rendered -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 19, 2010 at 1:48 AM, JeroenWolff jeroen.wo...@gmail.com wrote: Igor, thanks you've helped me a lot...but now i repaint the whole table and on every onComponentTag i update the class if the item is selected or not. I see in the debugger that onComponentTag and the tag.put(class, selected) but it is not rendered. What do i do wrong?? Thanks!! This is my code: public class HomePage extends BasePage { private KlantContact selected = new KlantContact(); private Panel detailPanel = new DetailPanel(details, selected); private PageableListViewKlantContact listView = null; private ListKlantContact klantContacten = null; �...@springbean private KlantContactDAO dao; public HomePage(PageParameters parameters) { String bsn = parameters.getString(bsn); InjectorHolder.getInjector().inject(this); final WebMarkupContainer tabel = new WebMarkupContainer(tabel); klantContacten = dao.geefKlantContactenVanDeLaatste2Maanden(bsn, new LocalDateTime()); listView = new PageableListViewKlantContact(zoekresultaat, klantContacten, 5) { private static final long serialVersionUID = 1L; �...@override protected ListItemKlantContact newItem(int index) { ListItemKlantContact item = new ListItemKlantContact(index, getListItemModel(getModel(), index)) { private static final long serialVersionUID = 1L; �...@override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); if (getModelObject() == selected) { tag.put(class, welselected); } else { tag.put(class, notselected); } } }; item.setOutputMarkupId(true); return item; } �...@override protected void populateItem(final ListItemKlantContact item) { KlantContact contact = item.getModelObject(); final AjaxFallbackLinkKlantContact contactDatumLink = new AjaxFallbackLinkKlantContact( contactdatumlink) { private static final long serialVersionUID = 1L; �...@override public void onClick(AjaxRequestTarget target) { // het geselecteerde KlantContact bepalen selected = (KlantContact) getParent() .getDefaultModelObject(); // het detailpanel vervangen met een nieuw detailpanel // waar de gelecteerde klantcontact details op komen. DetailPanel replacement = new DetailPanel(details, selected); replacement.setOutputMarkupId(true); detailPanel.replaceWith(replacement); detailPanel = replacement; if (target != null) { target.addComponent(detailPanel); // render de listview opnieuw om de selected css te zetten target.addComponent(tabel); } } }; contactDatumLink.add(new Label(contactdatumlinklabel, new PropertyModelKlantContact(contact, getContactDatumTijdDDMMYYHHMM))); item.add(contactDatumLink);
Re: replace panel problems
I have one question! I assume when inicialize de GenericDomReadyTailJavaScriptBehavior, the parameter should be a string with the JavaScript content, right? I could define the jQuery functions in a js file and call the function that I need from this AbstractBehavior class? I think, if you have a big project, you repeat js code, because a function could use in more than one component. I did a test, I put a simple js code function prueba(){ alert('funciona0'); } and I called it in the html associate with the panel (the replacement) div class =validityCombo tex_black_14_normalselect id=validitiesComboBox wicket:id=validitiesComboBox onchange=prueba()/select/div and it works fine! so, the problem is the dom ready event, ($(document).ready(function()) Jquery function :( -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/replace-panel-problems-tp2221878p2223633.html Sent from the Wicket - User 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: Using a component resolver to provide a panel component inside an enclosure
Can you create a quickstart for this and attach it to a JIRA? Yes, created a quickstart and attached to this new JIRA issue: https://issues.apache.org/jira/browse/WICKET-2882 Regards, Chris -- Jeremy Thomerson http://www.wickettraining.com On Tue, May 18, 2010 at 9:38 PM, Chris Colman chr...@stepaheadsoftware.comwrote: Has anyone been able to use a component resolver to provide a component inside an enclosure in wicket 1.4.2 or later? It worked fine in wicket 1.4.1 but no version after that seems to work, giving the error: WicketMessage: Tag expected The markup section looks like this: wicket:enclosure child=panelContainer div class=box span wicket:id=panelContainer/span div /wicket:enclosure The resolve method of my resolver that works fine in 1.4.1 looks like this: boolean resolve(final MarkupContainer container, final MarkupStream markupStream, final ComponentTag tag) { String tagStr = tag.getId(); if (tag instanceof WicketTag) { // this resolver does not handle wicket tags return false; } Page page = container.getPage(); // One day make this an interface that can be implemented // by any component - not just pages if ( page instanceof OrganizationPage tag != null ) { OrganizationPage organizationPage = (OrganizationPage)page; // Create and initialize the component final Component component = organizationPage .createComponent(container, tagStr); if (component != null) { container.autoAdd(component); return true; } } else logger.trace(page not org page: + tag + in + container); // We were not able to handle the componentId return false; } Diagnostics shows that the createComponent method is definitely being called and the Panel with id = panelContainer is being created and returned. Perhaps in post 1.4.1 wicket we need to add this component to a different container? i.e. different to the container parameter passed to the resolve method. - 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: Changing css class based on page
Thanks Jeremy I appreciate the pointer :-) Y. On 18 May 2010, at 14:26, Jeremy Thomerson wrote: I'd suggest modifying the class rather than the ID in case you end up doing something with ajax later. Jeremy Thomerson http://www.wickettraining.com -- sent from a wireless device -Original Message- From: Ioannis Mavroukakis imavrouka...@gameaccount.com Sent: Tuesday, May 18, 2010 4:07 AM To: users@wicket.apache.org Subject: Re: Changing css class based on page In fact it was a lot simpler than I thought, this works like a charm. private Link pageLink(final String id, final Class clazz) { final BookmarkablePageLink link = new BookmarkablePageLink(id, clazz); link.add(new AttributeModifier(id, true, new AbstractReadOnlyModelString() { @Override public String getObject() { return AbstractBasePage.this.getClass().equals(clazz) ? current : ; } })); return link; } On 17 May 2010, at 22:40, Ioannis Mavroukakis wrote: Thanks Jeremy that's great help as that's the route I considered initially going down, trying to make it reusable is the next step.. Y. On 17 May 2010, at 22:28, Jeremy Thomerson wrote: link1.add(new AttributeModifier(class, true, new AbstractReadOnlyModelString() { public String getObject() { return AbstractBasePage.this.getClass().equals(LinkOnePageClass.class) ? selectedPage : notSelectedPage; } }); There's probably a way to make that more reusable - but that should get you started. -- Jeremy Thomerson http://www.wickettraining.com On Mon, May 17, 2010 at 4:24 PM, Ioannis Mavroukakis imavrouka...@gameaccount.com wrote: Hey guys got a newbish question I cannot get my head around, and I would appreciate any help. I've got an AbstractBasePage template using markup inheritance. It very simply has some BookmarkablePageLink's which are common across all pages. What I want to do, is have a different css class for the active link (i.e. the one whose page you are on) and another for the inactive ones and I cannot for the life of me figure out what's the best way to do it - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to replace RelativePathPrefixHandler
Thanks Igor. That indeed looks very promising, and I replaced RelativePathPrefixHandler with a variant but that doesn't seem to work. I had already filed a Jira issue https://issues.apache.org/jira/browse/WICKET-2881 before I saw your response. Regards, Bernard On Wed, 19 May 2010 14:51:59 +1200, you wrote: Hi, It looks like Wicket may have the flexibility to replace elements of the chain of IMarkupFilters without changing Wicket itself. How can I replace RelativePathPrefixHandler with my own variant? I have found getPageSettings().getComponentResolvers(); But I am definitely missing the important bits. Many thanks, Bernard - 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