Re: Persistence.xml problem
I can assure you that there are no apparent problems/conflicts in using EclipseLink alongside Wicket. I'm doing it constantly :) It is likely that there is an issue with how your IDE is setup or packages the files. Some tools write their own META-INF directory in a war instead of using the one designated in your sources. That may need some tweaking but it's a stab in the dark since my setup is a Maven/Eclipse combo, so I cannot help on IDE specific issues. The principle remains the same though. It may be worth looking at the actual war archive and see whether the persistence.xml file is actually included at the right spot. Try changing the persistence unit's name and see whether the new name is recognised when you instantiate your PersistenceManagerFactory. Hope this helps On 25 Apr 2010, at 16:43, Matias Pansa wrote: No , is ant . Subject: Re: Persistence.xml problem From: ng...@mac.com Date: Sun, 25 Apr 2010 15:41:07 +0100 To: users@wicket.apache.org Is maven your build system? On 25 Apr 2010, at 14:46, Matias Pansa wrote: I try clean and build many times with the same result , i try deleting all files manually to , a clean tomcat install and manually deploy the app.Thanks. Date: Sun, 25 Apr 2010 13:34:28 + From: andre.prase...@gmail.com Subject: RE: Persistence.xml problem To: users@wicket.apache.org Try clean and build, you might break your application. Sent from my Nokia phone -Original Message- From: Igor Vaynberg Sent: 24/04/2010 23:10:15 Subject: Re: Persistence.xml problem wicket has nothing to do with it. maybe your IDE is not updating your persistence.xml in the target directory. -igor On Sat, Apr 24, 2010 at 7:02 AM, Matias Pansa matute...@hotmail.com wrote: Hi , i'm developing an app under netbeans + wicket + tomcat + wicket-contrib-javaee +eclipselink . The problem is that i run the app the first time and everything works fine , but i change the data source in persistence.xml and the app stop working , i change again to the original source and nothing , not working , there is no error ,exception , nothing , the app runs on tomcat like everything is ok , but there's no connection to the database , any data is persisted .I just delete persistence.xml and app stil working! ... clean tomcat install and still working without persistence.xml! , i deployed the app war file within netbeans and manually on tomcat's web manager without any persistence and the same result.So i want to know if maybe wicket has something to do with this problem because i try almost everything else , even running the app locally and in the server but nothing happens , i apreciate any help on this. _ Organizá una reunión con Hotmail: podés enviar un email a tus amigos y con el Calendario agendar la fecha. Descubrí más. http://www.microsoft.com/latam/windows/windowslive/products/calendar.aspx - 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 _ Con Hotmail y Calendario organizar reuniones es muy fácil: enviá invitaciones y recibí confirmaciones de asistencia. http://www.microsoft.com/latam/windows/windowslive/products/calendar.aspx -- npg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org _ Con Hotmail y Calendario organizar reuniones es muy fácil: enviá invitaciones y recibí confirmaciones de asistencia. http://www.microsoft.com/latam/windows/windowslive/products/calendar.aspx -- npg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Back button
So does this mean that if you won't true BackButtom support you should swallow all exceptions. That doesn't seem right.. D/ On Apr 25, 2010, at 11:26 AM, James Carman wrote: I meant page store, not session store. On Sun, Apr 25, 2010 at 12:26 PM, James Carman jcar...@carmanconsulting.com wrote: It would affect the back button because when Wicket tries to go get the specific version of the page back from the session store (only the current version is kept in the session and the earlier ones are in the store), it won't be able to find it. On Sun, Apr 25, 2010 at 11:45 AM, Douglas Ferguson doug...@douglasferguson.us wrote: No.. this is not a serialization issue, unless Igor is correct in that fact that the exception prevents serialization. But how would that effect the back button, should the page on the back button have already been serialized? Say if I get a hibernate failed to lazy load exception, then I hit the back button, the links on the page all throw a component not found on page D/ On Apr 25, 2010, at 7:45 AM, James Carman wrote: That means one of your fields might *not* be Serializable. The error message usually tells you the exact field that caused the problem (in development mode). On Sun, Apr 25, 2010 at 8:26 AM, Nico Guba ng...@mac.com wrote: Hmmm, does that imply that one of the member variables may be Serializable? On 25 Apr 2010, at 05:18, Igor Vaynberg wrote: the exception might have caused your page to not be serialized properly into the pagestore -igor On Sat, Apr 24, 2010 at 6:06 PM, Douglas Ferguson doug...@douglasferguson.us wrote: I just saw the issue again, but this time it happened right after an exception. I got an except. Hit back and then it complained that the link didn't exist. D? On Apr 24, 2010, at 6:58 PM, Douglas Ferguson wrote: Ah yes.. I am definitely seeing the component not found on page error. Any tips on how to get a quick start for this? Anybody got any example quickstarts that deal with back button issues? D/ On Apr 24, 2010, at 6:41 PM, Igor Vaynberg wrote: then you would get a page-expired error -igor On Sat, Apr 24, 2010 at 3:34 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Well something is happening, because I see it in the production logs and from time to time on my dev machine. What if the server is restarted? D/ On Apr 24, 2010, at 11:09 AM, Igor Vaynberg wrote: that doesnt matter because the url of the link you click contains the version number of the page -igor On Sat, Apr 24, 2010 at 2:35 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: In firefox it doesn't. Firefox reads the page back from it's in memory cache, which is the state before you clicked the ajax link. The headers should be changed to force firefox to request the page from the server (wicket). There are other threads on this subject, and frankly I do not understand why the headers are not changed in wicket core. On Fri, 23 Apr 2010 21:45 -0700, Igor Vaynberg igor.vaynb...@gmail.com wrote: the back button should roll the page back to the state that contained the item -igor On Fri, Apr 23, 2010 at 9:28 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Could this possibly happen if the following occurred. 1) Load a page with a repeater on it 2) Click on an ajax link that would remove an item from the repeater 3) Click the back button. Click on the link for the item you removed. D/ On Apr 23, 2010, at 10:32 AM, Martin Asenov wrote: Would someone assist me on this? Thank you in advance! -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Friday, April 23, 2010 9:38 AM To: users@wicket.apache.org Subject: Back button Hello, everyone! I've got a page with a repeater with cells - every single cell has a link in it. However, when you go to another page and afterwards press the Back button and click one of the links, the following exc is thrown: WicketMessage: org.apache.wicket.WicketRuntimeException: component view_holder:view:25:cols:30:trigger_ref not found on page com.company.project.ui.calendar.Calendar[id = 46], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] Wicket was supposed to support the Back button, wasn't it? Or maybe I'm missing something. Please advice... Thank you, 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: Back button
Hello, everyone! I was off during the weekend, that's the reason I didn't write. The issue occurs when: I've got a repeater with cells (a calendar). Every cell has its own day label (a link that opens a modal window). The modalwindowcallback is set on the modal window that refreshes the repeater (actually its parent webmarkupcontainer). Afterwards I go to another page, and then click the back button. Looks like FF remembers the markup ids before the repeater refresh, and this is where the problem comes from. When I click on a link, I get the mentioned exception. It doesn't occur in IE8. Best, Martin -Original Message- From: Douglas Ferguson [mailto:doug...@douglasferguson.us] Sent: Monday, April 26, 2010 9:26 AM To: users@wicket.apache.org Subject: Re: Back button So does this mean that if you won't true BackButtom support you should swallow all exceptions. That doesn't seem right.. D/ On Apr 25, 2010, at 11:26 AM, James Carman wrote: I meant page store, not session store. On Sun, Apr 25, 2010 at 12:26 PM, James Carman jcar...@carmanconsulting.com wrote: It would affect the back button because when Wicket tries to go get the specific version of the page back from the session store (only the current version is kept in the session and the earlier ones are in the store), it won't be able to find it. On Sun, Apr 25, 2010 at 11:45 AM, Douglas Ferguson doug...@douglasferguson.us wrote: No.. this is not a serialization issue, unless Igor is correct in that fact that the exception prevents serialization. But how would that effect the back button, should the page on the back button have already been serialized? Say if I get a hibernate failed to lazy load exception, then I hit the back button, the links on the page all throw a component not found on page D/ On Apr 25, 2010, at 7:45 AM, James Carman wrote: That means one of your fields might *not* be Serializable. The error message usually tells you the exact field that caused the problem (in development mode). On Sun, Apr 25, 2010 at 8:26 AM, Nico Guba ng...@mac.com wrote: Hmmm, does that imply that one of the member variables may be Serializable? On 25 Apr 2010, at 05:18, Igor Vaynberg wrote: the exception might have caused your page to not be serialized properly into the pagestore -igor On Sat, Apr 24, 2010 at 6:06 PM, Douglas Ferguson doug...@douglasferguson.us wrote: I just saw the issue again, but this time it happened right after an exception. I got an except. Hit back and then it complained that the link didn't exist. D? On Apr 24, 2010, at 6:58 PM, Douglas Ferguson wrote: Ah yes.. I am definitely seeing the component not found on page error. Any tips on how to get a quick start for this? Anybody got any example quickstarts that deal with back button issues? D/ On Apr 24, 2010, at 6:41 PM, Igor Vaynberg wrote: then you would get a page-expired error -igor On Sat, Apr 24, 2010 at 3:34 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Well something is happening, because I see it in the production logs and from time to time on my dev machine. What if the server is restarted? D/ On Apr 24, 2010, at 11:09 AM, Igor Vaynberg wrote: that doesnt matter because the url of the link you click contains the version number of the page -igor On Sat, Apr 24, 2010 at 2:35 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: In firefox it doesn't. Firefox reads the page back from it's in memory cache, which is the state before you clicked the ajax link. The headers should be changed to force firefox to request the page from the server (wicket). There are other threads on this subject, and frankly I do not understand why the headers are not changed in wicket core. On Fri, 23 Apr 2010 21:45 -0700, Igor Vaynberg igor.vaynb...@gmail.com wrote: the back button should roll the page back to the state that contained the item -igor On Fri, Apr 23, 2010 at 9:28 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Could this possibly happen if the following occurred. 1) Load a page with a repeater on it 2) Click on an ajax link that would remove an item from the repeater 3) Click the back button. Click on the link for the item you removed. D/ On Apr 23, 2010, at 10:32 AM, Martin Asenov wrote: Would someone assist me on this? Thank you in advance! -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Friday, April 23, 2010 9:38 AM To: users@wicket.apache.org Subject: Back button Hello, everyone! I've got a page with a repeater with cells - every single cell has a link in it. However, when you go to another page and afterwards press the Back button and click one of the links, the following exc is thrown: WicketMessage: org.apache.wicket.WicketRuntimeException: component view_holder:view:25:cols:30:trigger_ref not found on page
Shadow text on input fields
Hi guys; I would like to put some shadow text on the form input fields that disappears when one starts editing the field. The kind that appears on facebook fields. How do i do it. Most likely its not a wicket issue but i really need assistance in this. Am not very good in javascript. Kind regards Josh
RE: Back button
I found the solution https://issues.apache.org/jira/browse/WICKET-923 Best, Martin -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Monday, April 26, 2010 9:36 AM To: users@wicket.apache.org Subject: RE: Back button Hello, everyone! I was off during the weekend, that's the reason I didn't write. The issue occurs when: I've got a repeater with cells (a calendar). Every cell has its own day label (a link that opens a modal window). The modalwindowcallback is set on the modal window that refreshes the repeater (actually its parent webmarkupcontainer). Afterwards I go to another page, and then click the back button. Looks like FF remembers the markup ids before the repeater refresh, and this is where the problem comes from. When I click on a link, I get the mentioned exception. It doesn't occur in IE8. Best, Martin -Original Message- From: Douglas Ferguson [mailto:doug...@douglasferguson.us] Sent: Monday, April 26, 2010 9:26 AM To: users@wicket.apache.org Subject: Re: Back button So does this mean that if you won't true BackButtom support you should swallow all exceptions. That doesn't seem right.. D/ On Apr 25, 2010, at 11:26 AM, James Carman wrote: I meant page store, not session store. On Sun, Apr 25, 2010 at 12:26 PM, James Carman jcar...@carmanconsulting.com wrote: It would affect the back button because when Wicket tries to go get the specific version of the page back from the session store (only the current version is kept in the session and the earlier ones are in the store), it won't be able to find it. On Sun, Apr 25, 2010 at 11:45 AM, Douglas Ferguson doug...@douglasferguson.us wrote: No.. this is not a serialization issue, unless Igor is correct in that fact that the exception prevents serialization. But how would that effect the back button, should the page on the back button have already been serialized? Say if I get a hibernate failed to lazy load exception, then I hit the back button, the links on the page all throw a component not found on page D/ On Apr 25, 2010, at 7:45 AM, James Carman wrote: That means one of your fields might *not* be Serializable. The error message usually tells you the exact field that caused the problem (in development mode). On Sun, Apr 25, 2010 at 8:26 AM, Nico Guba ng...@mac.com wrote: Hmmm, does that imply that one of the member variables may be Serializable? On 25 Apr 2010, at 05:18, Igor Vaynberg wrote: the exception might have caused your page to not be serialized properly into the pagestore -igor On Sat, Apr 24, 2010 at 6:06 PM, Douglas Ferguson doug...@douglasferguson.us wrote: I just saw the issue again, but this time it happened right after an exception. I got an except. Hit back and then it complained that the link didn't exist. D? On Apr 24, 2010, at 6:58 PM, Douglas Ferguson wrote: Ah yes.. I am definitely seeing the component not found on page error. Any tips on how to get a quick start for this? Anybody got any example quickstarts that deal with back button issues? D/ On Apr 24, 2010, at 6:41 PM, Igor Vaynberg wrote: then you would get a page-expired error -igor On Sat, Apr 24, 2010 at 3:34 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Well something is happening, because I see it in the production logs and from time to time on my dev machine. What if the server is restarted? D/ On Apr 24, 2010, at 11:09 AM, Igor Vaynberg wrote: that doesnt matter because the url of the link you click contains the version number of the page -igor On Sat, Apr 24, 2010 at 2:35 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: In firefox it doesn't. Firefox reads the page back from it's in memory cache, which is the state before you clicked the ajax link. The headers should be changed to force firefox to request the page from the server (wicket). There are other threads on this subject, and frankly I do not understand why the headers are not changed in wicket core. On Fri, 23 Apr 2010 21:45 -0700, Igor Vaynberg igor.vaynb...@gmail.com wrote: the back button should roll the page back to the state that contained the item -igor On Fri, Apr 23, 2010 at 9:28 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Could this possibly happen if the following occurred. 1) Load a page with a repeater on it 2) Click on an ajax link that would remove an item from the repeater 3) Click the back button. Click on the link for the item you removed. D/ On Apr 23, 2010, at 10:32 AM, Martin Asenov wrote: Would someone assist me on this? Thank you in advance! -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Friday, April 23, 2010 9:38 AM To: users@wicket.apache.org Subject: Back button Hello, everyone! I've got a page with a repeater with cells - every single cell has a link in it. However, when you go
Re: Shadow text on input fields
If you can get away with it, you can use HTML5's placeholder text: http://diveintohtml5.org/forms.html Martijn On Mon, Apr 26, 2010 at 9:19 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi guys; I would like to put some shadow text on the form input fields that disappears when one starts editing the field. The kind that appears on facebook fields. How do i do it. Most likely its not a wicket issue but i really need assistance in this. Am not very good in javascript. Kind regards Josh -- 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: Shadow text on input fields
Thanks Marjtin On Mon, Apr 26, 2010 at 11:27 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: If you can get away with it, you can use HTML5's placeholder text: http://diveintohtml5.org/forms.html Martijn On Mon, Apr 26, 2010 at 9:19 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi guys; I would like to put some shadow text on the form input fields that disappears when one starts editing the field. The kind that appears on facebook fields. How do i do it. Most likely its not a wicket issue but i really need assistance in this. Am not very good in javascript. Kind regards Josh -- 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: Wicket and Guice / legup / warp persist?
I do it like this : http://pastebin.com/wcZ8XANh public class InjectorHolder { private static Injector injector; public InjectorHolder() { } @Inject public static void setInjector(Injector injector) { InjectorHolder.injector = injector; } public static Injector getInjector() { return injector; } } 2010/4/25 Douglas Ferguson doug...@douglasferguson.us: Anybody have tips on the correct way to do this? On Apr 24, 2010, at 5:42 PM, Douglas Ferguson wrote: I'm curious about how this would work with serialization/deserialization. For instance, with a data provider where would you actually put this: InjectorHolder.getInjector().inject(this) To make sure it gets called at the appropriate times? Is it ok to put it in the constructor of the data provider? Sounds like this won't be available until 1.4.8, any idea when that might surface? D/ On Apr 24, 2010, at 5:33 PM, Douglas Ferguson wrote: Interesting... I've been curious about how to properly use injection in data provider as this does not subclass component. Any tips on how to get this to work? D/ On Apr 24, 2010, at 12:32 PM, nino martinez wael wrote: BTW if anyone has trouble with this until 1.4.8 comes out then just write your own injectorholder class and in your guice module call requeststatic injection on that.. Works like a charm.. 2010/4/8 nino martinez wael nino.martinez.w...@gmail.com: Ahh typical :) And thanks for the update. 2010/4/8 Martin Grigorov mcgreg...@e-card.bg: The ticket for this is https://issues.apache.org/jira/browse/WICKET-2761 The fix is applied to 1.4.x at 13/03 by Juergen. 1.4.7 was released at 03/03. So, it will be included in next release - probably 1.4.8. On Thu, 2010-04-08 at 11:08 +0200, nino martinez wael wrote: Hi I revived my old wicket talk yesterday and since we are using guice at the company where Im at now the people attending the talk wanted to see my examples in guice / wicket instead of spring / wicket. So I used the legup archetype. Which worked nicely until I did a ldm which I had to inject a dao into. With spring I would add the ldm to the component instantiation listener, but if I do it the spring way (InjectorHolder.getInjector().inject(this);) I get this error: WicketMessage: Can't instantiate page using constructor public com.netdesign.blog.ViewPostPage(org.apache.wicket.PageParameters) and argument postid = [3] Root cause: java.lang.IllegalStateException: InjectorHolder has not been assigned an injector. Use InjectorHolder.setInjector() to assign an injector. In most cases this should be done once inside SpringWebApplication subclass's init() method. at org.apache.wicket.injection.web.InjectorHolder.getInjector(InjectorHolder.java:70) Now there are several things I wonder about, first of all, why are spring mentioned at all? Does wicket package DI specific classes in a common distribution, and if so should'nt it be called something specific towards the targetet DI framework. And second and more important how can I achieve the same thing with guice? Or this could also be a bug with legup or something. But I actually checked the init method and InjectorHolder.setInjector does not take the guice component injector as argument. regards Nino - 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 - 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
YUI 3 anyone?
Hi, Is there a cool best-practice or even better an integration library to use YUI 3? I know the standard generic way, I'm interested specifically in YUI 3... Thanks, Istvan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket and Guice / legup / warp persist?
I found out that If I injected in the constructor, when using inmethod grid hibernate would complain about a closed session. So solved it as the pastebin shows.. 2010/4/26 nino martinez wael nino.martinez.w...@gmail.com: I do it like this : http://pastebin.com/wcZ8XANh public class InjectorHolder { private static Injector injector; public InjectorHolder() { } �...@inject public static void setInjector(Injector injector) { InjectorHolder.injector = injector; } public static Injector getInjector() { return injector; } } 2010/4/25 Douglas Ferguson doug...@douglasferguson.us: Anybody have tips on the correct way to do this? On Apr 24, 2010, at 5:42 PM, Douglas Ferguson wrote: I'm curious about how this would work with serialization/deserialization. For instance, with a data provider where would you actually put this: InjectorHolder.getInjector().inject(this) To make sure it gets called at the appropriate times? Is it ok to put it in the constructor of the data provider? Sounds like this won't be available until 1.4.8, any idea when that might surface? D/ On Apr 24, 2010, at 5:33 PM, Douglas Ferguson wrote: Interesting... I've been curious about how to properly use injection in data provider as this does not subclass component. Any tips on how to get this to work? D/ On Apr 24, 2010, at 12:32 PM, nino martinez wael wrote: BTW if anyone has trouble with this until 1.4.8 comes out then just write your own injectorholder class and in your guice module call requeststatic injection on that.. Works like a charm.. 2010/4/8 nino martinez wael nino.martinez.w...@gmail.com: Ahh typical :) And thanks for the update. 2010/4/8 Martin Grigorov mcgreg...@e-card.bg: The ticket for this is https://issues.apache.org/jira/browse/WICKET-2761 The fix is applied to 1.4.x at 13/03 by Juergen. 1.4.7 was released at 03/03. So, it will be included in next release - probably 1.4.8. On Thu, 2010-04-08 at 11:08 +0200, nino martinez wael wrote: Hi I revived my old wicket talk yesterday and since we are using guice at the company where Im at now the people attending the talk wanted to see my examples in guice / wicket instead of spring / wicket. So I used the legup archetype. Which worked nicely until I did a ldm which I had to inject a dao into. With spring I would add the ldm to the component instantiation listener, but if I do it the spring way (InjectorHolder.getInjector().inject(this);) I get this error: WicketMessage: Can't instantiate page using constructor public com.netdesign.blog.ViewPostPage(org.apache.wicket.PageParameters) and argument postid = [3] Root cause: java.lang.IllegalStateException: InjectorHolder has not been assigned an injector. Use InjectorHolder.setInjector() to assign an injector. In most cases this should be done once inside SpringWebApplication subclass's init() method. at org.apache.wicket.injection.web.InjectorHolder.getInjector(InjectorHolder.java:70) Now there are several things I wonder about, first of all, why are spring mentioned at all? Does wicket package DI specific classes in a common distribution, and if so should'nt it be called something specific towards the targetet DI framework. And second and more important how can I achieve the same thing with guice? Or this could also be a bug with legup or something. But I actually checked the init method and InjectorHolder.setInjector does not take the guice component injector as argument. regards Nino - 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 - 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: is there some Ajax behavior updating only a component internal state/data ?
hi Martin I tried your code but had issues with it (bound to jetty + to instances of IOnChangeListener)). However, it made me look directly into AjaxFormComponentUpdatingBehavior.onEvent(..), where I ended keeping only formComponent.inputChanged(); . But then other issues started to rise: first of all how to call convertInput() in FormComponent, which is protected. Then, later on, my use case requires that I setInput on some CheckBoxes, which isn't doable neither. In the end, it feels like Wicket isn't thought for allowing to play directly with component's input, requiring rather to go through models only. This is, I guess, a compromise which makes sense overall (the risks of breaking the form process could be quite high I assume). Regarding my needs, it means, AFAIK, that I'll have to use a copy on my model's object in my current form, copying it back when the form is successfully submitted. thanks for your help in understanding that :) cheers joseph Martin Makundi wrote: Here: /** * Submits form without validating it. * * @author Martin */ public abstract class AjaxFormSubmittingChangeListenerBehavior extends AjaxFormSubmitBehavior { private final static Method hiddenFieldGetter; static { try { hiddenFieldGetter = Form.class.getDeclaredMethod(getHiddenFieldId); hiddenFieldGetter.setAccessible(true); } catch (Exception e) { throw new RuntimeException(e); } } /** * @see org.apache.wicket.ajax.AbstractDefaultAjaxBehavior#onBind() */ @Override protected void onBind() { super.onBind(); if (!(getComponent() instanceof IOnChangeListener)) { throw new WicketRuntimeException(Behavior + getClass().getName() + can only be added to an instance of a IOnChangeListener); } } /** * @param event */ public AjaxFormSubmittingChangeListenerBehavior(String event) { super(event); } /** * @see org.apache.wicket.ajax.form.AjaxFormSubmitBehavior#onError(org.apache.wicket.ajax.AjaxRequestTarget) */ @Override protected void onError(AjaxRequestTarget target) { onSubmit(target); } /** * @see org.apache.wicket.ajax.form.AjaxFormSubmitBehavior#onEvent(org.apache.wicket.ajax.AjaxRequestTarget) */ @Override protected void onEvent(AjaxRequestTarget target) { HttpServletRequest httpServletRequest = ((WebRequest) getComponent() .getRequest()).getHttpServletRequest(); Map parameters; if (httpServletRequest instanceof MockHttpServletRequest) { parameters = ((MockHttpServletRequest) httpServletRequest).getParameterMap(); } else { parameters = ((org.mortbay.jetty.Request) httpServletRequest).getParameters(); } parameters.put(getHiddenFieldId(getForm()), getComponent().urlFor(IOnChangeListener.INTERFACE)); final FormComponent? formComponent = (FormComponent?) getComponent(); try { if (isUpdateModel()) { formComponent.inputChanged(); formComponent.validate(); if (!formComponent.hasErrorMessage()) { formComponent.valid(); formComponent.updateModel(); } } super.onEvent(target); } catch (RuntimeException e) { Utils.errorLog(AjaxFormSubmittingChangeListenerBehavior.class, e); onError(target); } } /** * @return boolean */ protected boolean isUpdateModel() { return true; } /** * @param form * @return String */ private String getHiddenFieldId(Form? form) { try { Form? root = form.getRootForm(); return (String) hiddenFieldGetter.invoke(root); } catch (Exception e) { throw new RuntimeException(e); } } } 2010/4/23 Joseph Pachod j...@thomas-daily.de: Igor Vaynberg wrote: there is ajaxformsubmitting behavior which will update the entire form -igor thanks however, that's not exactly my need, being just recording the user input (not to loose it) without validating. Is there no way around, like a hook from Ajax to act only on some component internal state ? My use case being the following: The use case for it is a ListView with reuseItems(true) which loses in transit state. In more details, it means the user writes something in one of the listitem's textfield, then click on add new item = I want the textfield's state to be known and preserved, whereas the whole form shouldn't be submitted yet. which approach would you recommend ? thanks again joseph - 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 -- Joseph Pachod IT THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59
Re: YUI 3 anyone?
I think wicket 1.5 will use YUI 3. You can look to svn: http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/ajax/ 2010/4/26 Istvan Soos istvan.s...@gmail.com Hi, Is there a cool best-practice or even better an integration library to use YUI 3? I know the standard generic way, I'm interested specifically in YUI 3... Thanks, Istvan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: YUI 3 anyone?
Isn't this an experimental branch? Ernesto On Mon, Apr 26, 2010 at 12:34 PM, danisevsky danisev...@gmail.com wrote: I think wicket 1.5 will use YUI 3. You can look to svn: http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/ajax/ 2010/4/26 Istvan Soos istvan.s...@gmail.com Hi, Is there a cool best-practice or even better an integration library to use YUI 3? I know the standard generic way, I'm interested specifically in YUI 3... Thanks, Istvan - 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
I commited it to wicket-stuff tinymce project with proper example. W dniu 2010-04-21 10:23, Johan Haleby pisze: That would be really helpful. I'm struggling to get your example to work. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Shadow text on input fields
I wish we could have something like myTextField.setDefaultText(Type text here); On Mon, Apr 26, 2010 at 11:55 AM, Josh Kamau joshnet2...@gmail.com wrote: Thanks Marjtin On Mon, Apr 26, 2010 at 11:27 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: If you can get away with it, you can use HTML5's placeholder text: http://diveintohtml5.org/forms.html Martijn On Mon, Apr 26, 2010 at 9:19 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi guys; I would like to put some shadow text on the form input fields that disappears when one starts editing the field. The kind that appears on facebook fields. How do i do it. Most likely its not a wicket issue but i really need assistance in this. Am not very good in javascript. Kind regards Josh -- 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
SV: Shadow text on input fields
The problem is not the Wicket side of things, but the browser side. Should Wicket test for HTML 5 support, and fall back to a Javascript hack? - Tor Iver -Opprinnelig melding- Fra: Josh Kamau [mailto:joshnet2...@gmail.com] Sendt: 26. april 2010 13:29 Til: users@wicket.apache.org Emne: Re: Shadow text on input fields I wish we could have something like myTextField.setDefaultText(Type text here); On Mon, Apr 26, 2010 at 11:55 AM, Josh Kamau joshnet2...@gmail.com wrote: Thanks Marjtin On Mon, Apr 26, 2010 at 11:27 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: If you can get away with it, you can use HTML5's placeholder text: http://diveintohtml5.org/forms.html Martijn On Mon, Apr 26, 2010 at 9:19 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi guys; I would like to put some shadow text on the form input fields that disappears when one starts editing the field. The kind that appears on facebook fields. How do i do it. Most likely its not a wicket issue but i really need assistance in this. Am not very good in javascript. Kind regards Josh -- 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Shadow text on input fields
Should Wicket test for HTML 5 support, and fall back to a Javascript hack? I would really be glad if it did this. Am working on a public facing web application and i cant be guaranteed that users' browsers will have HTML5 support. Kind regards. Josh On Mon, Apr 26, 2010 at 2:31 PM, Wilhelmsen Tor Iver toriv...@arrive.nowrote: The problem is not the Wicket side of things, but the browser side. Should Wicket test for HTML 5 support, and fall back to a Javascript hack? - Tor Iver -Opprinnelig melding- Fra: Josh Kamau [mailto:joshnet2...@gmail.com] Sendt: 26. april 2010 13:29 Til: users@wicket.apache.org Emne: Re: Shadow text on input fields I wish we could have something like myTextField.setDefaultText(Type text here); On Mon, Apr 26, 2010 at 11:55 AM, Josh Kamau joshnet2...@gmail.com wrote: Thanks Marjtin On Mon, Apr 26, 2010 at 11:27 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: If you can get away with it, you can use HTML5's placeholder text: http://diveintohtml5.org/forms.html Martijn On Mon, Apr 26, 2010 at 9:19 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi guys; I would like to put some shadow text on the form input fields that disappears when one starts editing the field. The kind that appears on facebook fields. How do i do it. Most likely its not a wicket issue but i really need assistance in this. Am not very good in javascript. Kind regards Josh -- 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Shadow text on input fields
If you don't want to use JavaScript, you can still try it with CSS and images, like HTML: input class=name / CSS: input.name {background:url(name.png)} input.name:focus {background:none} But the problem is, if you leave the field the image returns. :) Witold Am Mon, 26 Apr 2010 14:28:57 +0300 schrieb Josh Kamau joshnet2...@gmail.com: I wish we could have something like myTextField.setDefaultText(Type text here); On Mon, Apr 26, 2010 at 11:55 AM, Josh Kamau joshnet2...@gmail.com wrote: Thanks Marjtin On Mon, Apr 26, 2010 at 11:27 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: If you can get away with it, you can use HTML5's placeholder text: http://diveintohtml5.org/forms.html Martijn On Mon, Apr 26, 2010 at 9:19 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi guys; I would like to put some shadow text on the form input fields that disappears when one starts editing the field. The kind that appears on facebook fields. How do i do it. Most likely its not a wicket issue but i really need assistance in this. Am not very good in javascript. Kind regards Josh -- 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Form submit with tinymce
Hello guys, I'm trying to submit a form (including tinymce content and an emoticon). The problem I'm having is that the emoticon does not get displayed at the destination only some text. does anyone know what to do. Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Back button
Looks like an issue with Firefox only though, as per the JIRA [1]. If you follow the recommendation in the JIRA, does that fix the problem? cheers, Steve [1] https://issues.apache.org/jira/browse/WICKET-923 On 26/04/2010, at 5:56 PM, Pointbreak wrote: That browser cache issue is what I suggested as the culprit earlier on in this thread, for which Igor replied: that doesnt matter because the url of the link you click contains the version number of the page Apparently it does matter? Or am I missing something? On Mon, 26 Apr 2010 10:21 +0300, Martin Asenov mase...@velti.com wrote: I found the solution https://issues.apache.org/jira/browse/WICKET-923 Best, 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
DataView disappearing after AJAX update
Hi, I'm having trouble figuring out the following problem. I have a div (coupled to a WebMarkupContainer) containing a form and a list. The list is populated with a DataView, which gets its data from a SortableDataProvider that I have implemented according to the repeater examples provided on wicket-library.com. What I want to do is to change the sort order based on a user selection from a DropDownChoice in the form. I've used an AjaxFormComponentUpdatingBehavior to listen to the dropdown's onchange event. In the onUpdate() method I change the sortparam in the dataprovider according to the selection and then add the container div to the AjaxRequestTarget. What I expect to happen is that the DataView updates to reflect the new sort order. What actually happens is that the DataView completely disappears from the page! (The Wicket Ajax Debug window shows me that the spot where the list should be in the HTML within the ajax-response is indeed empty.) I've already set the outputmarkupid and the outputmarkupplaceholdertag properties on the container to true but that makes no difference. Any ideas are appreciated! regards, -- Reinout van Schouwen - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Back button
Yes, it does... Best, Martin -Original Message- From: Steve Swinsburg [mailto:steve.swinsb...@gmail.com] Sent: Monday, April 26, 2010 3:19 PM To: users@wicket.apache.org Subject: Re: Back button Looks like an issue with Firefox only though, as per the JIRA [1]. If you follow the recommendation in the JIRA, does that fix the problem? cheers, Steve [1] https://issues.apache.org/jira/browse/WICKET-923 On 26/04/2010, at 5:56 PM, Pointbreak wrote: That browser cache issue is what I suggested as the culprit earlier on in this thread, for which Igor replied: that doesnt matter because the url of the link you click contains the version number of the page Apparently it does matter? Or am I missing something? On Mon, 26 Apr 2010 10:21 +0300, Martin Asenov mase...@velti.com wrote: I found the solution https://issues.apache.org/jira/browse/WICKET-923 Best, 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: Form submit with tinymce
Whats the raw content behind the text containing the emoticon when you submit? Is the emoticon represented as just a :) for example? If so you'll need to parse the output and render as the images. A graphical editor is just a fancy wrapper around text. cheers, Steve On 26/04/2010, at 10:03 PM, Robert Kimotho wrote: Hello guys, I'm trying to submit a form (including tinymce content and an emoticon). The problem I'm having is that the emoticon does not get displayed at the destination only some text. does anyone know what to do. Thanks. - 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: Form submit with tinymce
Thanks for the quick reply, I have used firebug to inspect the code, that tinymce saves. here it is :- img title=Cool src=resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif border=0 alt=Cool / the only thing that gets displayed is the title and the alt attributes. I still cannot figure out why the image won't display. On 4/26/10, Steve Swinsburg steve.swinsb...@gmail.com wrote: Whats the raw content behind the text containing the emoticon when you submit? Is the emoticon represented as just a :) for example? If so you'll need to parse the output and render as the images. A graphical editor is just a fancy wrapper around text. cheers, Steve On 26/04/2010, at 10:03 PM, Robert Kimotho wrote: Hello guys, I'm trying to submit a form (including tinymce content and an emoticon). The problem I'm having is that the emoticon does not get displayed at the destination only some text. does anyone know what to do. Thanks. - 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
SOAP WS client gets less results when run through wicket
Hi, I am experiencing a quite weird problem with wicket. Notice that I'm working to a project which counts several thousands of lines of code, so unless I understand where should I look for the problem, I can't post any relevant code. However, I am pretty confident the problem is somehow wicket related, as I will show you. I've got some low level packages which implement the business logic my web application exposes to the user. The basic operation is to consume SOAP webservices and store results into a DB. I tested my low level classes and they work fine, but if I call these classes' methods through the wicket web application I get far less results (200 or 1000 out of almost 7000). In order to debug the application I wrote down a simple test method, listed below. If I run a test program invoking the method by itself, I get the full 7k resultset, while if i call the very same method from inside the wicket webapp, I get just 200 (or 1000) items. I really can't understand what is going wrong, so any help in any direction is greatly appreciated. Thank you. Here is the test method: -- RegistrySnapshotManager snapshotManager = new RegistrySnapshotManager(); RegistryInquiryJpaController inquiryController = new RegistryInquiryJpaController(); RegistryInquiry inquiry = inquiryController.findRegistryInquiry(130); RegistrySnapshot snapshot = snapshotManager.newSnapshot(inquiry, Capability.CONE.getAdql() + or + Capability.SIA.getAdql() + or + Capability.SSA.getAdql()); System.out.println(snapshot.getSxapResourceList().size()); --- The SOAP webservice operation call is nested inside my classes and third party classes too. However, here are some relevant method calls from these classes: The above snapshotManager.newSnapshot(inquiry, sql) method invokes a third party method which hides the SOAP request. The third party package has been tested by several people throughout the world.
inmethod grid / Delete/add a row?
Hi Are there any built in functionality to delete or add rows with inmethod grid? Or should I just roll my own? regards Nino - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
FileUploadField within RepeatingView
Hi, I'm trying to build a form with multiple file upload fields. Each upload field has a companion text field used for describing the file content. I'm using a form with a RepeatingView: here is a simple code snippet: private FileUpload upload0; private FileUpload upload1; RepeatingView allegatiView = new RepeatingView(allegati); add(allegatiView); int i=0; for(SegnalazioneAllegato segnalazioneAllegato: allegati) { WebMarkupContainer allegatoContainer= new WebMarkupContainer(allegatiView.newChildId()); allegatiView.add(allegatoContainer); allegatoContainer.add(new TextFieldString(descrizione,new PropertyModelString(segnalazioneAllegato,descrizioneAllegato))); allegatoContainer.add(new FileUploadField(allegato,new PropertyModelFileUpload(this,upload+ i +))); } If I configure only one FileUploadField the fileupload succeds while if I use two FileUploadField instances I can't get the data because upload0 and upload1 are both null. I can't use MultiFileUploadField because each file must be submitted along with a description. Is this a bug or am I missing something? Is it possible to use multiple MultiFileUploadField instances witihin a form? Thanks a lot, Giovanni -- Giovanni Cuccu Responsabile area sviluppo - CUP 2000 Spa Via del Borgo di S. Pietro, 90/c - 40126 Bologna e-mail: giovanni.cuccu _at_ cup2000.it - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
GAE loses shared resources
Hello all, It’s been 2 weeks with no suggestions, so I figured I would give this another shot. I¹m running Wicket on Google App Engine. ?Things have been going fairly well, but I¹ve encountered a new issue. ?GAE, at any moment, can wipe and restart your application. ?In doing so, you lose everything including anything you¹ve added to SharedResources. ?Unfortunately, this can happen in the middle of a page load as illustrated here: -Page request comes in -MarkupFilter reads initial markup and creates some SharedResources (e.g. For different image file states) -MarkupFilter sets the URL in the markup based on the URL provided by the mounted SharedResource (e.g. ³img/logo.png² becomes ³/resources/INDIRA/img/logo_d.png² because I wanted the disabled version). -Markup is returned to the browser -GAE restarts the application, losing the added SharedResource mapping -Browser requests the resource according to the mounted URL -Wicket cannot find resource, missing image My current hack idea is to add any shared resource to the GAE MemCache (URL maps to File). ?That works, but now, I just need to know where Wicket actually looks up the file so I can add a fallback to check the GAE MemCache if the file is not found. ?My understanding is that the mounted SharedResource path resolves to an actual path in the ServletContext, but I can¹t figure out where that is happening. SharedResources.get() is final, so I can’t override that. I found references to WebRequestCodingStrategy.RESOURCES_PATH_PREFIX, but none of that seemed to help. ?Finally, I dove deep into WicketFilter, WebRequest/Response, SharedResourceRequestTarget etc but got completely lost and didn’t see an obvious solution.. ?I assume it¹s in there someplace, though. Any help would be appreciated. Thanks! Jake
Re: GAE loses shared resources
see org.apache.wicket.extensions.Initializer for an example of how to registered sharedresources on startup -igor 2010/4/26 Jacob Brookover jbrooko...@cast.org: Hello all, It’s been 2 weeks with no suggestions, so I figured I would give this another shot. I¹m running Wicket on Google App Engine. ?Things have been going fairly well, but I¹ve encountered a new issue. ?GAE, at any moment, can wipe and restart your application. ?In doing so, you lose everything including anything you¹ve added to SharedResources. ?Unfortunately, this can happen in the middle of a page load as illustrated here: -Page request comes in -MarkupFilter reads initial markup and creates some SharedResources (e.g. For different image file states) -MarkupFilter sets the URL in the markup based on the URL provided by the mounted SharedResource (e.g. ³img/logo.png² becomes ³/resources/INDIRA/img/logo_d.png² because I wanted the disabled version). -Markup is returned to the browser -GAE restarts the application, losing the added SharedResource mapping -Browser requests the resource according to the mounted URL -Wicket cannot find resource, missing image My current hack idea is to add any shared resource to the GAE MemCache (URL maps to File). ?That works, but now, I just need to know where Wicket actually looks up the file so I can add a fallback to check the GAE MemCache if the file is not found. ?My understanding is that the mounted SharedResource path resolves to an actual path in the ServletContext, but I can¹t figure out where that is happening. SharedResources.get() is final, so I can’t override that. I found references to WebRequestCodingStrategy.RESOURCES_PATH_PREFIX, but none of that seemed to help. ?Finally, I dove deep into WicketFilter, WebRequest/Response, SharedResourceRequestTarget etc but got completely lost and didn’t see an obvious solution.. ?I assume it¹s in there someplace, though. Any help would be appreciated. Thanks! Jake - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Shadow text on input fields
CSS: .inputHint { color: #66; } Java: add(new AttributeModifier(value, true, new AbstractReadOnlyModelString() { @Override public String getObject() { return yourHintText; } })); add(new AttributeModifier(class, true, new AbstractReadOnlyModelString() { @Override public String getObject() { return inputHint; } })); add(new AttributeModifier(onfocus, true, new AbstractReadOnlyModelString() { @Override public String getObject() { return removeInputHint(this,'inputHint');; } })); JS: removeInputHint = function(x, c) { x.setAttribute('value', ''); jQuery(x).removeClass(c); } Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Asynchronous DataStore queries on GAE with Twig-persist and other DataStore related problems
Hello, I want to use Wicket with GAE and exploit all GAE features but some problems arise. 1. I'm looking for a good solution for asynchronous simulteanous queries in Wicket. DataStore has a functionality of asynchronous queries so I would want to be able to fire various queries before rendering anything and then return the actual model objects when rendering particular component. I think of an Interface (or, better, abstract class) extending IModel with an additional method, name it prepareModel() which would run the asynchronous query, so getObjet would just wait for the query to finish and then return the result (this way total time spend of waiting for DataStore queries will be at most equal to slowest query). DataStore entities are organized into Entity Groups where there are ancestors and descendants. So sometimes to find an object I must first find the ancestor. So I would want to fire the prepareModel() for parent components first. 2. DataStore doesn't support joins internally and it's queries are limited to 1000 results (this means that GQL COUNT will never return value higher than 1000 even if there's more that 1000 entities that mets the requirements). Instead DataStore provides cursors to retrieve more than 1000 results and GAE devs recommends using separate sharded counters instead of GQL COUNT's (of course if the result would never exceed 1000 then we shall use normal GQL COUNT). Are there any components (repeaters) in Wicket that supports that approach? 3. I think that Wicket should be able to store pages from PageMap independently. This way we could store pages in separate entities in datastore (DataStore doesn't have schemas, one can store entities of any form as every kind) so fewer bytes would be transmitted to and from DataStore (Http Sessions are kept in MemCache and DiskStore). 4. How to inject an DataStore object in Models that will be testing friendly?
Re: WicketTester fails with a custom WebRequestCodingStrategy
could you please post the value of Location (302) header? On Sat, Apr 24, 2010 at 8:41 PM, Kent Tong k...@cpttm.org.mo wrote: Hi Martin, You may take a look at http://wicketpagetest.sourceforge.net/ which will work for your case. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org