Re: [Wicket-user] Lifecycle issue with getVariation
On 3/30/07, Chris Colman <[EMAIL PROTECTED]> wrote: > Java objects construct the way that they do and we use Java object > constructors because we like that simplicity. Your bug is reported and > will be fixed. Any time schedule for that? the fix is in svn -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Lifecycle issue with getVariation
> Okay, here's my opinion: > > People have been using Wicket for years now and this is the first bug > of this type I have heard of. I am very reluctant attempt any sort of > generic framework-level "fix" to the semantics of Java object construction > (regardless of how anyone feels about the practices defined by the JLS). All OO languages share similar semantics of object construction and the same issues arise when attempting to use partially constructed objects in any of them so it's not an issue specific to Java object construction. It's a 20 year old problem that has been solved time and time again in many different OO languages and different frameworks by using a two phase initialization pattern but if you've found a way to fix the getVariation issue without resorting to a two phase initialization pattern then that's great - let me at it!!! Like I said, that's the only issue I need to have fixed right now. > Java objects construct the way that they do and we use Java object > constructors because we like that simplicity. Your bug is reported and > will be fixed. Any time schedule for that? "Back in my day we didn't need Tapestry, or Wicket or WebObjects, or even Servlets, or for that matter Java! We just coded in plain assembly language. And before that we had to just type in 1's and 0's. Sometimes we didn't even have 1's. I once had to code for an entire month, barefoot, in the dead of winter, using just 0's... but you didn't hear me complaining." - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.3 ready for development?
On 3/30/07, dukejansen <[EMAIL PROTECTED]> wrote: > > I too am working on a system which must go live to a large user base early to > mid July. > > What kind of confidence can I have that 1.3 be stable enough by then? Are we > talking 95%, 75%, or 50%? 95% or more. > I need some of the 1.3 functionality but once I commit to move to 1.3 I'm > not going to have time to go back to 1.2 if bugs start popping up all over > the place. > > Any good place to see what kinds of stability problems are present - i.e. if > they are in parts of the framework not being used, etc? I have a pretty good feeling about 1.3's stability. The only thing that may an issue the next 1 or 2 months is that we're still backporting 2.0 features. You can track what needs to be done still here http://cwiki.apache.org/confluence/display/WICKET/Backporting+features+from+trunk and of course, with every back port there is the possibility we break/ forget something. But like I said, at least a number of people of the Wicket team uses 1.3 for their day jobs, so if anything went sour we'll know and fix quickly! Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.3 ready for development?
I too am working on a system which must go live to a large user base early to mid July. What kind of confidence can I have that 1.3 be stable enough by then? Are we talking 95%, 75%, or 50%? I need some of the 1.3 functionality but once I commit to move to 1.3 I'm not going to have time to go back to 1.2 if bugs start popping up all over the place. Any good place to see what kinds of stability problems are present - i.e. if they are in parts of the framework not being used, etc? Thanks, Jason Eelco Hillenius wrote: > > I would recommend using 1.3. Some people of the team (including me) > are using 1.3 for a project that needs to be live bigtime medio July. > So, 1.3 has to be good enough to run production systems by then (and > in fact we're running a production server with a 1.3 snapshot right > now and that works fine). > > Eelco > > > On 3/30/07, Erik van Oosten <[EMAIL PROTECTED]> wrote: >> Hello, >> >> I am looking for some thoughts that allow me to decide whether I am >> going to use 1.2 or 1.3 for my next project. Work starts in a few weeks >> from now and needs to be finished somewhere in July. The Wicket part is >> rather small (<10 crud pages) but it will feature spring annotations, >> wicket-auth with Acegi (hopefully with a stateless login page), and >> probably some ajax updated panels. >> >> I see three options: >> - by July wicket 1.3 is not ready for production use => 1.2 (option 1) >> - by July wicket 1.3 is ready for production use => >> - it is easy to switch from 1.2 to 1.3 => 1.2 now, switch to 1.3 later >> (option 2) >> - it is not so easy to switch from 1.2 to 1.3 => 1.3 (option 3) >> >> WDYT? >> >> Regards, >> Erik. >> >> -- >> Erik van Oosten >> http://www.day-to-day-stuff.blogspot.com/ >> >> >> - >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Wicket-1.3-ready-for-development--tf3492725.html#a9762226 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Changing bgcolor for field+error component
Thanks :). Every time I think I really catch up with how powerful wicket is, you show me I'm wrong. On 3/30/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: pseudocode class myfeedbackborder extends formcomponentfeedbackborder { public void onComponentTag(tag) { if (!getfeedbackmessages().isempty()) { tag.put("class","error"); } } } div.error input { background-color:red;} -igor On 3/30/07, Carlos Pita < [EMAIL PROTECTED]> wrote: > > Not sure if I understand you. Precisely what I want to do is to wrap the > components (field+feedback... even the label) as you say, but depending on > the feedback status I would need to: (i) show/hide the wrapper border or > (ii) change its style attribute. I would like to do this programmatically, > depending on getFeedbackMessages() being empty or not for the form field. So > I thought of AttributeModifiers with a model that take this into account to > change the style attribute of the border. > > Cheers, > Carlos > > On 3/30/07, Eelco Hillenius < [EMAIL PROTECTED]> wrote: > > > > If you use borders, you can wrap the form components with elements for > > which you set the class or style attribute, and you can do this with > > CSS, right? > > > > Eelco > > > > > > On 3/30/07, Carlos Pita < [EMAIL PROTECTED]> wrote: > > > Hi all, > > > I need to show errors for form fields next to the fields themselves. > > I have > > > tried with FormComponentFeedbackIndicator/Border, which > > > just worked fine, but the fact is that I need to affect the > > background of > > > both the field and its error message (for example, turning it to > > red) while > > > these provided markup containers just show/hide some component > > inside them. > > > I could go low-level down to WebMarkupContainer and implement that > > myself, > > > for example changing the style for the entire field+error area. But > > I think > > > it could be done with Variations or with AttributeModifiers too. > > What do you > > > recommend? > > > Thank you in advance. > > > Cheers, > > > Carlos > > > > > > > > - > > > Take Surveys. Earn Cash. Influence the Future of IT > > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > > opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > opinions on IT & business topics through brief surveys-and earn cash > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Changing bgcolor for field+error component
pseudocode class myfeedbackborder extends formcomponentfeedbackborder { public void onComponentTag(tag) { if (!getfeedbackmessages().isempty()) { tag.put("class","error"); } } } div.error input { background-color:red;} -igor On 3/30/07, Carlos Pita <[EMAIL PROTECTED]> wrote: Not sure if I understand you. Precisely what I want to do is to wrap the components (field+feedback... even the label) as you say, but depending on the feedback status I would need to: (i) show/hide the wrapper border or (ii) change its style attribute. I would like to do this programmatically, depending on getFeedbackMessages() being empty or not for the form field. So I thought of AttributeModifiers with a model that take this into account to change the style attribute of the border. Cheers, Carlos On 3/30/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > If you use borders, you can wrap the form components with elements for > which you set the class or style attribute, and you can do this with > CSS, right? > > Eelco > > > On 3/30/07, Carlos Pita < [EMAIL PROTECTED]> wrote: > > Hi all, > > I need to show errors for form fields next to the fields themselves. I > have > > tried with FormComponentFeedbackIndicator/Border, which > > just worked fine, but the fact is that I need to affect the background > of > > both the field and its error message (for example, turning it to red) > while > > these provided markup containers just show/hide some component inside > them. > > I could go low-level down to WebMarkupContainer and implement that > myself, > > for example changing the style for the entire field+error area. But I > think > > it could be done with Variations or with AttributeModifiers too. What > do you > > recommend? > > Thank you in advance. > > Cheers, > > Carlos > > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Changing bgcolor for field+error component
Not sure if I understand you. Precisely what I want to do is to wrap the components (field+feedback... even the label) as you say, but depending on the feedback status I would need to: (i) show/hide the wrapper border or (ii) change its style attribute. I would like to do this programmatically, depending on getFeedbackMessages() being empty or not for the form field. So I thought of AttributeModifiers with a model that take this into account to change the style attribute of the border. Cheers, Carlos On 3/30/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: If you use borders, you can wrap the form components with elements for which you set the class or style attribute, and you can do this with CSS, right? Eelco On 3/30/07, Carlos Pita <[EMAIL PROTECTED]> wrote: > Hi all, > I need to show errors for form fields next to the fields themselves. I have > tried with FormComponentFeedbackIndicator/Border, which > just worked fine, but the fact is that I need to affect the background of > both the field and its error message (for example, turning it to red) while > these provided markup containers just show/hide some component inside them. > I could go low-level down to WebMarkupContainer and implement that myself, > for example changing the style for the entire field+error area. But I think > it could be done with Variations or with AttributeModifiers too. What do you > recommend? > Thank you in advance. > Cheers, > Carlos > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.3 ready for development?
Yes I would indeed also go for 1.3. I use it in one live system now. The trick right now is just to think before upgrading to latest snapshot all the time. I'm using a version from before the big backports (Model) from around 18. march and I'm not going to upgrade again until the dust has settled (which will be around this weekend I guess). Frank On 3/30/07, Erik van Oosten <[EMAIL PROTECTED]> wrote: Hello, I am looking for some thoughts that allow me to decide whether I am going to use 1.2 or 1.3 for my next project. Work starts in a few weeks from now and needs to be finished somewhere in July. The Wicket part is rather small (<10 crud pages) but it will feature spring annotations, wicket-auth with Acegi (hopefully with a stateless login page), and probably some ajax updated panels. I see three options: - by July wicket 1.3 is not ready for production use => 1.2 (option 1) - by July wicket 1.3 is ready for production use => - it is easy to switch from 1.2 to 1.3 => 1.2 now, switch to 1.3 later (option 2) - it is not so easy to switch from 1.2 to 1.3 => 1.3 (option 3) WDYT? Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Changing bgcolor for field+error component
If you use borders, you can wrap the form components with elements for which you set the class or style attribute, and you can do this with CSS, right? Eelco On 3/30/07, Carlos Pita <[EMAIL PROTECTED]> wrote: > Hi all, > I need to show errors for form fields next to the fields themselves. I have > tried with FormComponentFeedbackIndicator/Border, which > just worked fine, but the fact is that I need to affect the background of > both the field and its error message (for example, turning it to red) while > these provided markup containers just show/hide some component inside them. > I could go low-level down to WebMarkupContainer and implement that myself, > for example changing the style for the entire field+error area. But I think > it could be done with Variations or with AttributeModifiers too. What do you > recommend? > Thank you in advance. > Cheers, > Carlos > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Changing bgcolor for field+error component
Hi all, I need to show errors for form fields next to the fields themselves. I have tried with FormComponentFeedbackIndicator/Border, which just worked fine, but the fact is that I need to affect the background of both the field and its error message (for example, turning it to red) while these provided markup containers just show/hide some component inside them. I could go low-level down to WebMarkupContainer and implement that myself, for example changing the style for the entire field+error area. But I think it could be done with Variations or with AttributeModifiers too. What do you recommend? Thank you in advance. Cheers, Carlos - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] I vote yes on wicket-371
Hi everyone! I read on the devel list that you're voting about merging the fix to issue wicket-371 into 1.2.6. It would really help me if you did. It would fix a problem in the app I'm developing, which currently requires a workaround. The context: I'm using statefull non-singleton beans, injected with @SpringBean annotations, that get screwed up by the current injector (it caches them instead of returning new instances). I've already verified the fix is exactly what I need. Thanks! --Andrés - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] About ModalWindow example for wicket 1.3
The same exception occurred. Man Kam. Eelco Hillenius wrote: > Try mvn clean first. > > Eelco > > On 3/30/07, Chan Man Kam <[EMAIL PROTECTED]> wrote: > >> I just checkout the branches/wicket-1.x. >> >> After I create the jar file with mvn -Dmaven.test.skip=true package >> and attach the library, jetty always return these exception: >> >> org.mortbay.util.MultiException[java.lang.ClassNotFoundException: >> wicket.protocol.http.WicketFilter] >> at org.mortbay.http.HttpServer.doStart(HttpServer.java:686) >> at org.mortbay.util.Container.start(Container.java:72) >> at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282) >> at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104) >> at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75) >> java.lang.ClassNotFoundException: wicket.protocol.http.WicketFilter >> at java.net.URLClassLoader$1.run(URLClassLoader.java:200) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:219) >> at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:187) >> at org.mortbay.http.HttpContext.loadClass(HttpContext.java:1227) >> at org.mortbay.jetty.servlet.Holder.start(Holder.java:188) >> at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:60) >> at >> org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310) >> at >> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509) >> at org.mortbay.util.Container.start(Container.java:72) >> at org.mortbay.http.HttpServer.doStart(HttpServer.java:708) >> at org.mortbay.util.Container.start(Container.java:72) >> at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282) >> at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104) >> at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75) >> java.lang.ClassNotFoundException: wicket.protocol.http.WicketFilter >> at java.net.URLClassLoader$1.run(URLClassLoader.java:200) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:219) >> at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:187) >> at org.mortbay.http.HttpContext.loadClass(HttpContext.java:1227) >> at org.mortbay.jetty.servlet.Holder.start(Holder.java:188) >> at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:60) >> at >> org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310) >> at >> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509) >> at org.mortbay.util.Container.start(Container.java:72) >> at org.mortbay.http.HttpServer.doStart(HttpServer.java:708) >> at org.mortbay.util.Container.start(Container.java:72) >> at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282) >> at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104) >> at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75) >> >> >> Here are my web.xml: >> >> >> > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" >> "http://java.sun.com/dtd/web-app_2_3.dtd";> >> >> >> LSA Application >> >> >> configuration >> deployment >> >> >> >> Application >> wicket.protocol.http.WicketFilter >> >> >> applicationClassName >> lsa.web.LSAApplication >> >> >> filterPath >> app >> >> >> >> >> Application >> /* >> >> >> >> I am newbie on maven and sorry for my stupid question. >> >> Ar I always waste time in such kind of setting problem, especially >> for java development >> >> Thanks, >> Man Kam >> >> Matej Knopp wrote: >> >>> yeah, that's rather old snapshot, i think it's already fixed. >>> >>> On 3/29/07, Chan Man Kam <[EMAIL PROTECTED]> wrote: >>> >>> I just download it form mvn (http://wicketstuff.org/maven/repository) a few day before. #Generated by Maven #Mon Mar 12 00:03:31 CET 2007 version=1.3-incubating-SNAPSHOT Man Kam Matej Knopp wrote: > what version are you using? can you check if this still happens with > latest 1.3 wicket version? > > -Matej > > On 3/29/07, Chan Man Kam <[EMAIL PROTECTED]> wrote: > > > >> Dear all, >> >> At first, I got this exception, after I click "Close this window with >> result "OK"" inside the ModalWindow. >> >> wicket.util.io.WicketSerializeableException: Error reading field: locale >> for object class: class >> wicket.extensions.ajax.markup.html.modal.ModalWindow$MaskType >> children->maskType >> NOTE: if you feel Wicket is at fault with this exception, please report >> to the mailing list. You can switch to JDK based serialization
Re: [Wicket-user] localized resource property file - fallback to default?
It already does work like that. http://cwiki.apache.org/WICKET/i18n-and-resource-bundles.html Regards, Erik. dukejansen wrote: > Right now, if I have a localized property file (e.g. Welcome_de.properties), > it seems I must have all resource keys defined in it. > > I would prefer to have the localizer be smart enough to fallback to the > default properties file (e.g. Welcome.properties) if a property is not > present in the localized property file. > > This would make it possible to add properties to the system and not have to > translate them all immediately - let it fall back to the default language > until someone gets around to translating it. > > Does Wicket have this easily configurable, or do I need to roll my own > resource resolvers or other classes for this purpose? > -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Radio.getValue?
I don't know... you might be better off just creating your own components here. But I'd also like to know the opinions of other developers here... Eelco On 3/30/07, Nino Wael <[EMAIL PROTECTED]> wrote: > That was whý I suggested that we could have another constructor that took an > Ichoicerender. There are tons of places in other wicket core components that > supply a constructor that takes the ichoicerender. > > SO I think it should be ok? I would really like that ichoicerenderer would be > supported by every component where it makes sense... > > > Should we move this do the dev list? > > regards Nino > > > > Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg > Sendt: to 29-03-2007 19:11 > Til: wicket-user@lists.sourceforge.net > Emne: Re: [Wicket-user] Radio.getValue? > > > On 3/29/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > Looking at that code, I don't understand why we even need: > private short uuid = -1; > > as there is no code other than in getValue that changes the value, and > that value can just be recreated everytime it is needed (as it is > nothing more than a call to getPage().getAutoIndex()). Am I missing > something here? > > > yes, you are missing the fact that getautoindex() increments the index on > every call that is why we cache it in the uuid var. > > > > WDYT? > > > personally i dont like making getvalue non-final. this will patch this > component for this kind of testing, but what about other components that do > not have a stable name? are we going to have to start opening implementation > details on all of them just because users want to test it with something > static like httpunit? just my 2c. > > -igor > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Session Persistence in Wicket 1.2 - Recommendations?
Yeah, and the concept of a session store is new to 1.3 too. If you want to do something like that in 1.2 you should start with a custom session, and patch the setAttribute/ getAttribute methods for your needs. With a bit of creativity you should be able to come a long way, but the refactorings of 1.3 were there for a reason of course. Eelco On 3/30/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > i think a lot of internal api changed to allow for this to work well. for > example pagemap is now an interface, its not in 1.2. things like that. feel > free to give it a go though, i didnt do that refactor so im not 100% sure of > what im talking about here :) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] About ModalWindow example for wicket 1.3
Try mvn clean first. Eelco On 3/30/07, Chan Man Kam <[EMAIL PROTECTED]> wrote: > I just checkout the branches/wicket-1.x. > > After I create the jar file with mvn -Dmaven.test.skip=true package > and attach the library, jetty always return these exception: > > org.mortbay.util.MultiException[java.lang.ClassNotFoundException: > wicket.protocol.http.WicketFilter] > at org.mortbay.http.HttpServer.doStart(HttpServer.java:686) > at org.mortbay.util.Container.start(Container.java:72) > at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282) > at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104) > at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75) > java.lang.ClassNotFoundException: wicket.protocol.http.WicketFilter > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:219) > at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:187) > at org.mortbay.http.HttpContext.loadClass(HttpContext.java:1227) > at org.mortbay.jetty.servlet.Holder.start(Holder.java:188) > at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:60) > at > org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310) > at > org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509) > at org.mortbay.util.Container.start(Container.java:72) > at org.mortbay.http.HttpServer.doStart(HttpServer.java:708) > at org.mortbay.util.Container.start(Container.java:72) > at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282) > at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104) > at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75) > java.lang.ClassNotFoundException: wicket.protocol.http.WicketFilter > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:219) > at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:187) > at org.mortbay.http.HttpContext.loadClass(HttpContext.java:1227) > at org.mortbay.jetty.servlet.Holder.start(Holder.java:188) > at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:60) > at > org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310) > at > org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509) > at org.mortbay.util.Container.start(Container.java:72) > at org.mortbay.http.HttpServer.doStart(HttpServer.java:708) > at org.mortbay.util.Container.start(Container.java:72) > at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282) > at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104) > at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75) > > > Here are my web.xml: > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd";> > > > LSA Application > > > configuration > deployment > > > > Application > wicket.protocol.http.WicketFilter > > > applicationClassName > lsa.web.LSAApplication > > > filterPath > app > > > > > Application > /* > > > > I am newbie on maven and sorry for my stupid question. > > Ar I always waste time in such kind of setting problem, especially > for java development > > Thanks, > Man Kam > > Matej Knopp wrote: > > yeah, that's rather old snapshot, i think it's already fixed. > > > > On 3/29/07, Chan Man Kam <[EMAIL PROTECTED]> wrote: > > > >> I just download it form mvn (http://wicketstuff.org/maven/repository) > >> a few day before. > >> > >> #Generated by Maven > >> #Mon Mar 12 00:03:31 CET 2007 > >> version=1.3-incubating-SNAPSHOT > >> > >> Man Kam > >> > >> Matej Knopp wrote: > >> > >>> what version are you using? can you check if this still happens with > >>> latest 1.3 wicket version? > >>> > >>> -Matej > >>> > >>> On 3/29/07, Chan Man Kam <[EMAIL PROTECTED]> wrote: > >>> > >>> > Dear all, > > At first, I got this exception, after I click "Close this window with > result "OK"" inside the ModalWindow. > > wicket.util.io.WicketSerializeableException: Error reading field: locale > for object class: class > wicket.extensions.ajax.markup.html.modal.ModalWindow$MaskType > children->maskType > NOTE: if you feel Wicket is at fault with this exception, please report > to the mailing list. You can switch to JDK based serialization by > calling: wicket.util.lang.Objects.setObjectStreamFactory(new > IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init > method of your application > at > wicket.util.io.ClassStre
Re: [Wicket-user] ajax refresh on date picker
Thank you! I will do that. Also, I changed my mode in web.xml to DEPLOYMENT. -Shyla Eelco Hillenius wrote: > > Yeah, please upgrade to a new version. You can download them here: > http://sourceforge.net/project/showfiles.php?group_id=119783&package_id=130482 > or you can get the latest snapshot from here: > http://wicketstuff.org/maven/repository/wicket/wicket/1.2-SNAPSHOT/ > > We want to do a 1.2.6 release soon if we can find some time. > > Eelco > > > On 3/30/07, sraj <[EMAIL PROTECTED]> wrote: >> >> 1.2.3. >> >> Thanks, >> Shyla >> >> >> >> Eelco Hillenius wrote: >> > >> > What version of Wicket are you using? And if it is not the latest >> > 1.2.x or 1.3, please upgrade. >> > >> > Eelco >> > >> > >> >> Hello, >> >> >> >> I am getting 'Stack Overflow' error from the browser while selecting >> >> Date >> >> from Date picker UI. Please help. >> >> >> >> Thanks, >> >> sraj >> > >> > >> - >> > Take Surveys. Earn Cash. Influence the Future of IT >> > Join SourceForge.net's Techsay panel and you'll get the chance to share >> > your >> > opinions on IT & business topics through brief surveys-and earn cash >> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> > ___ >> > Wicket-user mailing list >> > Wicket-user@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/ajax-refresh-on-date-picker-tf2314518.html#a9756696 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/ajax-refresh-on-date-picker-tf2314518.html#a9757054 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ajax refresh on date picker
Yeah, please upgrade to a new version. You can download them here: http://sourceforge.net/project/showfiles.php?group_id=119783&package_id=130482 or you can get the latest snapshot from here: http://wicketstuff.org/maven/repository/wicket/wicket/1.2-SNAPSHOT/ We want to do a 1.2.6 release soon if we can find some time. Eelco On 3/30/07, sraj <[EMAIL PROTECTED]> wrote: > > 1.2.3. > > Thanks, > Shyla > > > > Eelco Hillenius wrote: > > > > What version of Wicket are you using? And if it is not the latest > > 1.2.x or 1.3, please upgrade. > > > > Eelco > > > > > >> Hello, > >> > >> I am getting 'Stack Overflow' error from the browser while selecting > >> Date > >> from Date picker UI. Please help. > >> > >> Thanks, > >> sraj > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > -- > View this message in context: > http://www.nabble.com/ajax-refresh-on-date-picker-tf2314518.html#a9756696 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.3 ready for development?
I would recommend using 1.3. Some people of the team (including me) are using 1.3 for a project that needs to be live bigtime medio July. So, 1.3 has to be good enough to run production systems by then (and in fact we're running a production server with a 1.3 snapshot right now and that works fine). Eelco On 3/30/07, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Hello, > > I am looking for some thoughts that allow me to decide whether I am > going to use 1.2 or 1.3 for my next project. Work starts in a few weeks > from now and needs to be finished somewhere in July. The Wicket part is > rather small (<10 crud pages) but it will feature spring annotations, > wicket-auth with Acegi (hopefully with a stateless login page), and > probably some ajax updated panels. > > I see three options: > - by July wicket 1.3 is not ready for production use => 1.2 (option 1) > - by July wicket 1.3 is ready for production use => > - it is easy to switch from 1.2 to 1.3 => 1.2 now, switch to 1.3 later > (option 2) > - it is not so easy to switch from 1.2 to 1.3 => 1.3 (option 3) > > WDYT? > > Regards, > Erik. > > -- > Erik van Oosten > http://www.day-to-day-stuff.blogspot.com/ > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ajax refresh on date picker
1.2.3. Thanks, Shyla Eelco Hillenius wrote: > > What version of Wicket are you using? And if it is not the latest > 1.2.x or 1.3, please upgrade. > > Eelco > > >> Hello, >> >> I am getting 'Stack Overflow' error from the browser while selecting >> Date >> from Date picker UI. Please help. >> >> Thanks, >> sraj > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/ajax-refresh-on-date-picker-tf2314518.html#a9756696 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ajax refresh on date picker
What version of Wicket are you using? And if it is not the latest 1.2.x or 1.3, please upgrade. Eelco > Hello, > > I am getting 'Stack Overflow' error from the browser while selecting Date > from Date picker UI. Please help. > > Thanks, > sraj - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Session Persistence in Wicket 1.2 - Recommendations?
i think a lot of internal api changed to allow for this to work well. for example pagemap is now an interface, its not in 1.2. things like that. feel free to give it a go though, i didnt do that refactor so im not 100% sure of what im talking about here :) -igor On 3/30/07, dukejansen <[EMAIL PROTECTED]> wrote: Not even just writing my own session store that hides the complexity of the persistence? Or is that the point your making, that doing so would be difficult/impossible based on the Wicket 1.2 code? I feel like I've read about 1.2 having ability to do it, just not easily. Am I mistaken? igor.vaynberg wrote: > > second level store involved some pretty heavy refactoring of the internals > afaik, so i dont think you will get it working under 1.2 > > -igor > > > On 3/30/07, dukejansen <[EMAIL PROTECTED]> wrote: >> >> >> Does anyone have any good recommendations for how I get started with >> second >> level session storage in Wicket 1.2, via persistence to disk, for (1) old >> page versions and (2) entire sessions when session expires? We can't move >> to >> 1.3 or 2.0, so I'm trying to get an understanding of what my options are >> before I dive into it. >> -- >> View this message in context: >> http://www.nabble.com/Session-Persistence-in-Wicket-1.2---Recommendations--tf3493043.html#a9755905 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Session-Persistence-in-Wicket-1.2---Recommendations--tf3493043.html#a9756397 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Session Persistence in Wicket 1.2 - Recommendations?
Not even just writing my own session store that hides the complexity of the persistence? Or is that the point your making, that doing so would be difficult/impossible based on the Wicket 1.2 code? I feel like I've read about 1.2 having ability to do it, just not easily. Am I mistaken? igor.vaynberg wrote: > > second level store involved some pretty heavy refactoring of the internals > afaik, so i dont think you will get it working under 1.2 > > -igor > > > On 3/30/07, dukejansen <[EMAIL PROTECTED]> wrote: >> >> >> Does anyone have any good recommendations for how I get started with >> second >> level session storage in Wicket 1.2, via persistence to disk, for (1) old >> page versions and (2) entire sessions when session expires? We can't move >> to >> 1.3 or 2.0, so I'm trying to get an understanding of what my options are >> before I dive into it. >> -- >> View this message in context: >> http://www.nabble.com/Session-Persistence-in-Wicket-1.2---Recommendations--tf3493043.html#a9755905 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Session-Persistence-in-Wicket-1.2---Recommendations--tf3493043.html#a9756397 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ajax refresh on date picker
Hello, I am getting 'Stack Overflow' error from the browser while selecting Date from Date picker UI. Please help. Thanks, sraj samyem wrote: > > So far so good. It got rid of the issues with stack overflow and the other > previous issues has not surfaced. > > Thanks, > Samyem > > > Matej Knopp wrote: >> >> Hi, >> >> it should be fixed in SVN, but I can't really test it. I've simulated >> updating of many elements so that I could reproduce the stack overflow, >> but I don't know if that is your case. >> >> please try the current version and let me know. >> >> -Matej >> >> Matej Knopp wrote: >>> Sorry for this, I've underestimated the stack size of browsers. Expect >>> it to be fixed withing couple of hours. >>> >>> -Matej >>> >>> Pierre-Yves Saumont wrote: Hi Samyem, Could you send me your script, so that I can see if it solves the problem for me? Thanks, Pierre-Yves samyem a écrit : > I could trace my problem to a recent change in wicket-ajax.js. In the > defination of processNext, it used to be that the run was called on a > timeout like window.setTimeout(run, 1);. Now this is only called for > isKHTML, and there is a direct call to run() otherwise. This for some > reason > gave the recursion error for me. When I reverted this line and use the > timeout version, the recursion error disappeared. I am not sure about > the > big picture of what's going on, but that gave me a dirty fix for now. > > - Samyem > > > > samyem wrote: >> Same here. I am getting too much recursion in places I didn't have >> problem >> earlier as well. Looking at the generated source, it is clear that >> the >> java script gets included more than once, not just once in the >> header. >> >> - Samyem >> >> >> Pierre-Yves Saumont wrote: >>> I am afraid there is still a problem. I tested the fix in the >>> quickstart >>> I had made and it worked fine. However, in my application, selecting >>> a >>> date in the datepicker cause a Javascript error. FF reports this >>> error >>> as: >>> >>> Erreur : too much recursion >>> Fichier source : >>> http://localhost:8080/ceagrap/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js >>> Ligne : 1796 >>> >>> Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear; >>> Date.prototype.setFullYear = function(y) { >>>var d = new Date(this); <<< line 1796 >>>d.__msh_oldSetFullYear(y); >>>if (d.getMonth() != this.getMonth()) >>> this.setDate(28); >>>this.__msh_oldSetFullYear(y); >>> }; >>> >>> In IE6, the error message is "not enough stack space". The same line >>> number is reported, but the next line is highlighted: >>> >>> Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear; >>> Date.prototype.setFullYear = function(y) { >>>var d = new Date(this); >>>d.__msh_oldSetFullYear(y); <<< line 1796 >>>if (d.getMonth() != this.getMonth()) >>> this.setDate(28); >>>this.__msh_oldSetFullYear(y); >>> }; >>> >>> If I reload the page, the error disapears. >>> >>> Pierre-Yves >>> >>> >>> Matej Knopp a ?crit : Thanks for fixed files, I've already commited those. -Matej Pierre-Yves Saumont wrote: > Now it seems to work fine provided the locale switching is made > through reloading the page and not through Ajax. (I enclosed the > modified french scripts, in utf8 and iso.) > > If switching is made through Ajax, it works much better than it > did > before. If the datepicker is visible when switching, switching > works > fine. If the datepicker is not visible when switching, and then is > is > loaded through Ajax, it does not always acknowledge the switch. > > But the worst problem is that reloading the page after a locale > switch > (which before made the datepicker to swith to the new locale) now > cause an exception: > > Root cause:java.lang.IllegalStateException: Cannot remove > [MarkupContainer [Component id = 6, page = , path = > 6.Loop$LoopItem]] from null parent! at > wicket.Component.remove(Component.java:1475) at > wicket.version.undo.Add.undo(Add.java:81) at > wicket.version.undo.ChangeList.undo(ChangeList.java:93) at > wicket.version.undo.UndoPageVersionManager.undo(UndoPageVersionManager.java:217) > > at > wicket.version.undo.UndoPageVersionManager.getVersion(UndoPageVersionManager.java:167) > > > > I also somtime
Re: [Wicket-user] AjaxSubmitButton and FormComponentFeedbackBorder
Thanks Igor. That's what I was doing but I didn't manage to grab my feedback borders. It's now done like this : target.addComponent(formComponent.getParent()); Cheers ZedroS On 3/28/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > use a visitor to visit all form component feedback borders and add them to > the target. > > -igor > > > > On 3/28/07, ZedroS Schwart < [EMAIL PROTECTED]> wrote: > > > > Quick update : > > I've found some help here : > > > http://www.nabble.com/FeedbackPanel%2C-Form%2C-which-component-is-caousing-feedback--tf2427268.html#a6767963 > > but I'm still looking for how to tell the FormComponentFeedbackBorder > > to render itself.. > > > > ++ > > ZedroS, digging in ! > > > > > > On 3/28/07, ZedroS Schwart < [EMAIL PROTECTED]> wrote: > > > Hi > > > > > > I'm playing with Ajax and Wicket, which is quite fun, but I've an > > > issue with AjaxSubmitButton and FormComponentFeedbackBorder. > > > > > > I guess I should use target.addComponent(Component) ; to declare in my > > > AjaxSubmitButton that I want the feedback border to be updated. > > > > > > However, I'm using a CommonForm which is inherited in my page, to add > > > some specific elements. > > > > > > Thus, if I put my AjaxSubmitButton in my page, I don't have any > > > reference to the feedbackborder. If I put my AjaxSubmitButton in the > > > inherited form itself, then I've to give a reference to my > > > feedbackpanel (passing it to the form and then the AjaxSubmitButton ) > > > and one reference for each feedbackborder (passing each to the > > > AjaxSubmitButton). > > > > > > This end up being quite verbose and annoying, so I wonder whether > > > there is a better, like calling directly my form "onSubmit" and let it > > > deal directly with the feedbackborder... > > > > > > I hope I'm clear enough for you to help me, if not just let me know. > > > > > > Thanks in advance > > > ZedroS > > > > > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] About ModalWindow example for wicket 1.3
I just checkout the branches/wicket-1.x. After I create the jar file with mvn -Dmaven.test.skip=true package and attach the library, jetty always return these exception: org.mortbay.util.MultiException[java.lang.ClassNotFoundException: wicket.protocol.http.WicketFilter] at org.mortbay.http.HttpServer.doStart(HttpServer.java:686) at org.mortbay.util.Container.start(Container.java:72) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104) at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75) java.lang.ClassNotFoundException: wicket.protocol.http.WicketFilter at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:219) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:187) at org.mortbay.http.HttpContext.loadClass(HttpContext.java:1227) at org.mortbay.jetty.servlet.Holder.start(Holder.java:188) at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:60) at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310) at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509) at org.mortbay.util.Container.start(Container.java:72) at org.mortbay.http.HttpServer.doStart(HttpServer.java:708) at org.mortbay.util.Container.start(Container.java:72) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104) at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75) java.lang.ClassNotFoundException: wicket.protocol.http.WicketFilter at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:219) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:187) at org.mortbay.http.HttpContext.loadClass(HttpContext.java:1227) at org.mortbay.jetty.servlet.Holder.start(Holder.java:188) at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:60) at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310) at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509) at org.mortbay.util.Container.start(Container.java:72) at org.mortbay.http.HttpServer.doStart(HttpServer.java:708) at org.mortbay.util.Container.start(Container.java:72) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104) at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75) Here are my web.xml: http://java.sun.com/dtd/web-app_2_3.dtd";> LSA Application configuration deployment Application wicket.protocol.http.WicketFilter applicationClassName lsa.web.LSAApplication filterPath app Application /* I am newbie on maven and sorry for my stupid question. Ar I always waste time in such kind of setting problem, especially for java development Thanks, Man Kam Matej Knopp wrote: > yeah, that's rather old snapshot, i think it's already fixed. > > On 3/29/07, Chan Man Kam <[EMAIL PROTECTED]> wrote: > >> I just download it form mvn (http://wicketstuff.org/maven/repository) >> a few day before. >> >> #Generated by Maven >> #Mon Mar 12 00:03:31 CET 2007 >> version=1.3-incubating-SNAPSHOT >> >> Man Kam >> >> Matej Knopp wrote: >> >>> what version are you using? can you check if this still happens with >>> latest 1.3 wicket version? >>> >>> -Matej >>> >>> On 3/29/07, Chan Man Kam <[EMAIL PROTECTED]> wrote: >>> >>> Dear all, At first, I got this exception, after I click "Close this window with result "OK"" inside the ModalWindow. wicket.util.io.WicketSerializeableException: Error reading field: locale for object class: class wicket.extensions.ajax.markup.html.modal.ModalWindow$MaskType children->maskType NOTE: if you feel Wicket is at fault with this exception, please report to the mailing list. You can switch to JDK based serialization by calling: wicket.util.lang.Objects.setObjectStreamFactory(new IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init method of your application at wicket.util.io.ClassStreamHandler.readFields(ClassStreamHandler.java:424) at wicket.util.io.WicketObjectInputStream.readObjectOverride(WicketObjectInputStream.java:96) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:342) at wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.readField(ClassStreamHandler.java:869) at wicket.util.io.ClassStreamHandler.readF
Re: [Wicket-user] Session Persistence in Wicket 1.2 - Recommendations?
second level store involved some pretty heavy refactoring of the internals afaik, so i dont think you will get it working under 1.2 -igor On 3/30/07, dukejansen <[EMAIL PROTECTED]> wrote: Does anyone have any good recommendations for how I get started with second level session storage in Wicket 1.2, via persistence to disk, for (1) old page versions and (2) entire sessions when session expires? We can't move to 1.3 or 2.0, so I'm trying to get an understanding of what my options are before I dive into it. -- View this message in context: http://www.nabble.com/Session-Persistence-in-Wicket-1.2---Recommendations--tf3493043.html#a9755905 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Session Persistence in Wicket 1.2 - Recommendations?
Does anyone have any good recommendations for how I get started with second level session storage in Wicket 1.2, via persistence to disk, for (1) old page versions and (2) entire sessions when session expires? We can't move to 1.3 or 2.0, so I'm trying to get an understanding of what my options are before I dive into it. -- View this message in context: http://www.nabble.com/Session-Persistence-in-Wicket-1.2---Recommendations--tf3493043.html#a9755905 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] localized resource property file - fallback to default?
Right now, if I have a localized property file (e.g. Welcome_de.properties), it seems I must have all resource keys defined in it. I would prefer to have the localizer be smart enough to fallback to the default properties file (e.g. Welcome.properties) if a property is not present in the localized property file. This would make it possible to add properties to the system and not have to translate them all immediately - let it fall back to the default language until someone gets around to translating it. Does Wicket have this easily configurable, or do I need to roll my own resource resolvers or other classes for this purpose? -- View this message in context: http://www.nabble.com/localized-resource-property-file---fallback-to-default--tf3493032.html#a9755878 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] nested DataView is not updating model
/** * Whether this component's onSelectionChanged event handler should called * using javascript if the selection changes. If true, a roundtrip will be * generated with each selection change, resulting in the model being * updated (of just this component) and onSelectionChanged being called. * This method returns false by default. * * @return True if this component's onSelectionChanged event handler should * called using javascript if the selection changes */ protected boolean wantOnSelectionChangedNotifications() { return false; } if you want the entire form submitted then create your own onclick that does "this.form.submit();" -igor On 3/30/07, changdt2 <[EMAIL PROTECTED]> wrote: Hi , I do have dataview.setitemreusestrategy and reuseifmodelsequalstartegy. I took a closer look at my code and what I notice is that when I click on the radio button which has wantOnSelectionChangedNotifications returning true, it does not update the model. basically I have a few textfield ( simple textfield ) which seems to just refresh the screen with the model, but it does not update the model with the new data entered. by the way the whole screen get refresh and even data on top of the screen are refresh with the model and the data entered are not updated. DO you know what can be the cause? is "wantOnSelectionChangedNotifications returning true" on the radiochoice, suppose to only refresh the radiochoice? regards, David Chang igor.vaynberg wrote: > > if you use dataview in a form you have to set the proper itemreusestrategy > so dataview doesnt discard items and rebuild them on every request > > see dataview.setitemreusestrategy and reuseifmodelsequalstartegy > > -igor > > > On 3/29/07, changdt2 <[EMAIL PROTECTED]> wrote: >> >> >> this is what I have >> >> public class MyRadioChoice extends RadioChoice >> { >> public MyRadioChoice(final String id, final IModel model,List >> choices) >> { super(id,model,choices);} >> public boolean wantOnSelectionChangedNotifications(){return >> true;} >> } >> >> public void populateItem(final Item item) >> { >> >> QuestionModel questionModel = (QuestionModel)item.getModelObject(); >> item.add(new MyRadioChoice("question",new >> PropertyModel(question,"question")),lisOfYesNo); >> >> ResultDataProvider rdp = new ResultDataProvider(); >> MyResultDVO rdvo = new MyResultDVO(); >> >> rdvo.setResultDVO(questionModel.getSubQuestionModels()); >> rdp.setResultDVO(rdvo); >> >> >> DataView dataView = new DataView(CommonConstants.FOLLOWUP_QUESTION, >> rdp) >> { >> >> protected void populateItem(final Item item) >> { >> Question question = ((QuestionModel)obj).getQuestion(); >> TextFirld ft = new TextField("subQuestion", new >> PropertyModel(question,"question"), type) >> ft.setRequired(true); >> item.add(ft); >> } >> >> }; >> >> item.add(dataView); >> >> } >> >> basically the model seems not attached. I do not see the field high >> lighted >> when I leave tre field empty. >> TextFirld ft = new TextField("subQuestion", new >> PropertyModel(question,"question"), type) >> ft.setRequired(true); >> item.add(ft); >> >> >> Sorry, posted to author by mistake, >> Regards, >> David C. >> >> igor.vaynberg wrote: >> > >> > what do you mean fields are not highlighted? >> > >> > -igor >> > >> > >> > On 3/29/07, changdt2 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> hi, >> >> >> >> I am working with DataView where each item will a have a label, >> checkbox >> >> and >> >> another Dataview which is created on the fly, but it seems that the >> >> models >> >> in the sub Dataview is not been attached, when error happens the Sub >> >> Dataview which contains fields is not high lighted. >> >> >> >> Is there a issue to created Nested dataview? >> >> >> >> Thanks, >> >> David C. >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/nested-DataView-is-not-updating-model-tf3487728.html#a9738414 >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> - >> >> Take Surveys. Earn Cash. Influence the Future of IT >> >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share >> >> your >> >> opinions on IT & business topics through brief surveys-and earn cash >> >> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> ___ >> >> Wicket-user mailing list >> >> Wicket-user@lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> > >> > >> - >> > Take Surveys. Earn Cash. Influence the Future of IT >> > Join SourceForge.net's Techsay panel and you'll
Re: [Wicket-user] Radio.getValue?
radio and check do not take an ichoicerenderer because they do not need it. they do not traverse over a list of choices and try to look one up, they have the choice attached directly to them via imodel. -igor On 3/30/07, Nino Wael <[EMAIL PROTECTED]> wrote: That was whý I suggested that we could have another constructor that took an Ichoicerender. There are tons of places in other wicket core components that supply a constructor that takes the ichoicerender. SO I think it should be ok? I would really like that ichoicerenderer would be supported by every component where it makes sense... Should we move this do the dev list? regards Nino Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg Sendt: to 29-03-2007 19:11 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Radio.getValue? On 3/29/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: Looking at that code, I don't understand why we even need: private short uuid = -1; as there is no code other than in getValue that changes the value, and that value can just be recreated everytime it is needed (as it is nothing more than a call to getPage().getAutoIndex()). Am I missing something here? yes, you are missing the fact that getautoindex() increments the index on every call that is why we cache it in the uuid var. WDYT? personally i dont like making getvalue non-final. this will patch this component for this kind of testing, but what about other components that do not have a stable name? are we going to have to start opening implementation details on all of them just because users want to test it with something static like httpunit? just my 2c. -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Lifecycle issue with getVariation
On 3/30/07, Chris Colman <[EMAIL PROTECTED]> wrote: 2. Users still have to remember to call super.onAttach in their overridden handlers though this could be rectified by creating a new method internalOnAttach that only the framework calls: heh, weve been down this road and i just finally removed the damn internalOnAttach() and internalOnDetach(), so i doubt we will want to go there again. component.attach() and component.detach() are now smart enough to check if all onattach/ondetach overrides call super. -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket 1.3 ready for development?
Hello, I am looking for some thoughts that allow me to decide whether I am going to use 1.2 or 1.3 for my next project. Work starts in a few weeks from now and needs to be finished somewhere in July. The Wicket part is rather small (<10 crud pages) but it will feature spring annotations, wicket-auth with Acegi (hopefully with a stateless login page), and probably some ajax updated panels. I see three options: - by July wicket 1.3 is not ready for production use => 1.2 (option 1) - by July wicket 1.3 is ready for production use => - it is easy to switch from 1.2 to 1.3 => 1.2 now, switch to 1.3 later (option 2) - it is not so easy to switch from 1.2 to 1.3 => 1.3 (option 3) WDYT? Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] nested DataView is not updating model
Hi , I do have dataview.setitemreusestrategy and reuseifmodelsequalstartegy. I took a closer look at my code and what I notice is that when I click on the radio button which has wantOnSelectionChangedNotifications returning true, it does not update the model. basically I have a few textfield ( simple textfield ) which seems to just refresh the screen with the model, but it does not update the model with the new data entered. by the way the whole screen get refresh and even data on top of the screen are refresh with the model and the data entered are not updated. DO you know what can be the cause? is "wantOnSelectionChangedNotifications returning true" on the radiochoice, suppose to only refresh the radiochoice? regards, David Chang igor.vaynberg wrote: > > if you use dataview in a form you have to set the proper itemreusestrategy > so dataview doesnt discard items and rebuild them on every request > > see dataview.setitemreusestrategy and reuseifmodelsequalstartegy > > -igor > > > On 3/29/07, changdt2 <[EMAIL PROTECTED]> wrote: >> >> >> this is what I have >> >> public class MyRadioChoice extends RadioChoice >> { >> public MyRadioChoice(final String id, final IModel model,List >> choices) >> { super(id,model,choices);} >> public boolean wantOnSelectionChangedNotifications(){return >> true;} >> } >> >> public void populateItem(final Item item) >> { >> >> QuestionModel questionModel = (QuestionModel)item.getModelObject(); >> item.add(new MyRadioChoice("question",new >> PropertyModel(question,"question")),lisOfYesNo); >> >> ResultDataProvider rdp = new ResultDataProvider(); >> MyResultDVO rdvo = new MyResultDVO(); >> >> rdvo.setResultDVO(questionModel.getSubQuestionModels()); >> rdp.setResultDVO(rdvo); >> >> >> DataView dataView = new DataView(CommonConstants.FOLLOWUP_QUESTION , >> rdp) >> { >> >> protected void populateItem(final Item item) >> { >> Question question = ((QuestionModel)obj).getQuestion(); >> TextFirld ft = new TextField("subQuestion", new >> PropertyModel(question,"question"), type) >> ft.setRequired(true); >> item.add(ft); >> } >> >> }; >> >> item.add(dataView); >> >> } >> >> basically the model seems not attached. I do not see the field high >> lighted >> when I leave tre field empty. >> TextFirld ft = new TextField("subQuestion", new >> PropertyModel(question,"question"), type) >> ft.setRequired(true); >> item.add(ft); >> >> >> Sorry, posted to author by mistake, >> Regards, >> David C. >> >> igor.vaynberg wrote: >> > >> > what do you mean fields are not highlighted? >> > >> > -igor >> > >> > >> > On 3/29/07, changdt2 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> hi, >> >> >> >> I am working with DataView where each item will a have a label, >> checkbox >> >> and >> >> another Dataview which is created on the fly, but it seems that the >> >> models >> >> in the sub Dataview is not been attached, when error happens the Sub >> >> Dataview which contains fields is not high lighted. >> >> >> >> Is there a issue to created Nested dataview? >> >> >> >> Thanks, >> >> David C. >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/nested-DataView-is-not-updating-model-tf3487728.html#a9738414 >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> - >> >> Take Surveys. Earn Cash. Influence the Future of IT >> >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share >> >> your >> >> opinions on IT & business topics through brief surveys-and earn cash >> >> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> ___ >> >> Wicket-user mailing list >> >> Wicket-user@lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> > >> > >> - >> > Take Surveys. Earn Cash. Influence the Future of IT >> > Join SourceForge.net's Techsay panel and you'll get the chance to share >> > your >> > opinions on IT & business topics through brief surveys-and earn cash >> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> > ___ >> > Wicket-user mailing list >> > Wicket-user@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/nested-DataView-is-not-updating-model-tf3487728.html#a9739403 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay
Re: [Wicket-user] Ajax error handling: deployment vs developmentmode
* Apaar Trivedi: > What I would like is to be able to use both in either mode in > Wicket 1.2.4. Is this possible? The patch would need to be backported then. -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Newbie can't get the DropDownChoice right
the ddc will try to set the Option on the model object. public class Foo { Option option; } form = new Form("form", new CompoundPropertyModel(new Foo())); form.add(new DropDownChoice("option", imageList, new ChoiceRenderer(...)); This instructs Wicket to bind the value of the ddc to the option field of the Foo object. Given that the option field is of type Option, and that the imagelist contains Option objects, this works. Martijn On 3/30/07, Andrew Moore <[EMAIL PROTECTED]> wrote: > > I've got a simple option class (as i've seen in examples) > > > public class Option { > String key; > String value; > > public String getKey() { > return key; > } > > public void setKey(String key) { > this.key = key; > } > > public String getValue() { > return value; > } > > public void setValue(String value) { > this.value = value; > } > > public Option(String key, String value) { > this.key = key; > this.value = value; > } > } > > > I then populate an ArrayList (called imageList) with several entries of the > Option class. > > Then I add a dropdownchoice component to my form using: > ChoiceRenderer choiceRenderer = new ChoiceRenderer("value", "key"); > form.add(dropDownChoice = new DropDownChoice("imageCollectionId", > imageList, choiceRenderer)); > > This works fine to display the key and value bits correctly in the html, but > then how do I get out the key and value properties. > > The only way I've found so far is to have the imageCollectionId attribute in > my POJO business object of type Option, whereas I only want it to be of type > String - where it should just hold the 'key' value of the Option class. > > All I want is to get at the 'key' value, but display the 'value' on the > screen. > > Hope that makes some sense, it's been puzzling me all day, and I thought it > would be so simple. > Cheers > > -- > View this message in context: > http://www.nabble.com/Newbie-can%27t-get-the-DropDownChoice-right-tf3492095.html#a9752792 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.5 will keep your server alive. Download Wicket now! http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Newbie can't get the DropDownChoice right
I've got a simple option class (as i've seen in examples) public class Option { String key; String value; public String getKey() { return key; } public void setKey(String key) { this.key = key; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public Option(String key, String value) { this.key = key; this.value = value; } } I then populate an ArrayList (called imageList) with several entries of the Option class. Then I add a dropdownchoice component to my form using: ChoiceRenderer choiceRenderer = new ChoiceRenderer("value", "key"); form.add(dropDownChoice = new DropDownChoice("imageCollectionId", imageList, choiceRenderer)); This works fine to display the key and value bits correctly in the html, but then how do I get out the key and value properties. The only way I've found so far is to have the imageCollectionId attribute in my POJO business object of type Option, whereas I only want it to be of type String - where it should just hold the 'key' value of the Option class. All I want is to get at the 'key' value, but display the 'value' on the screen. Hope that makes some sense, it's been puzzling me all day, and I thought it would be so simple. Cheers -- View this message in context: http://www.nabble.com/Newbie-can%27t-get-the-DropDownChoice-right-tf3492095.html#a9752792 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] XSD / Validation
I think one of your answer can be found in this thread... http://www.nabble.com/XHTML-ContentType-problem-tf3362030.html#a9352755 On 3/29/07, Johannes Schneider <[EMAIL PROTECTED]> wrote: Hi, I am new to Wicket and want to use XHTML and validate the files. I use IntelliJ Idea but I could not succeed in validating. I run into two problems: - I did not find any "wicket.xsd"? I just found a DTD, but I don't know how I should use it. - How can I switch the file extension to "xhtml" (at the moment Wicket only searches for ".html"). This would allow me to easily set up IntelliJ to validate only the "*.xhtml" files. Thanks for your help. Johannes Schneider -- Johannes Schneider Im Lindenwasen 15 72810 Gomaringen Fon +49 7072 9229972 Fax +49 7072 50 [EMAIL PROTECTED] http://www.johannes-schneider.info - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Radio.getValue?
That was whý I suggested that we could have another constructor that took an Ichoicerender. There are tons of places in other wicket core components that supply a constructor that takes the ichoicerender. SO I think it should be ok? I would really like that ichoicerenderer would be supported by every component where it makes sense... Should we move this do the dev list? regards Nino Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg Sendt: to 29-03-2007 19:11 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Radio.getValue? On 3/29/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: Looking at that code, I don't understand why we even need: private short uuid = -1; as there is no code other than in getValue that changes the value, and that value can just be recreated everytime it is needed (as it is nothing more than a call to getPage().getAutoIndex()). Am I missing something here? yes, you are missing the fact that getautoindex() increments the index on every call that is why we cache it in the uuid var. WDYT? personally i dont like making getvalue non-final. this will patch this component for this kind of testing, but what about other components that do not have a stable name? are we going to have to start opening implementation details on all of them just because users want to test it with something static like httpunit? just my 2c. -igor <>- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Lifecycle issue with getVariation
> can you show us your code? > ... > ah, sorry. this is the code i take it. just not in response to my > original post (at least on nabble). There is possibly an even simpler solution using onAttach - overriding it in WebPage: onAttach() { commonInit(); init(); } public void init() { // developers can override this in their own pages to perform // any post construction initialization } With this solution RequestCycle and BookmarkablePageRequestTarget don't need to be touched. Possible issues with the onAttach option: 1. The commonInit might not get called until a little later than it does with the original option. 2. Users still have to remember to call super.onAttach in their overridden handlers though this could be rectified by creating a new method internalOnAttach that only the framework calls: public void internalOnAttach() { if ( !inited ) commonInit(); onAttach(); } For some reason the first option 'feels more elegant' because it remains independent of the 'attach' phase of the lifecycle. There may be issues with coupling the init and the attach phases of the lifecycle together like that. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Internationalization and DropDownChoice
2007/3/30, Toscano <[EMAIL PROTECTED]>: countries = new DropDownChoice ("country", new Model() { public List getObject() { return getCountries(); } }, getCountries(), new CountryChoiceRenderer()); Skip the second getCountries() call - you don't need that - and also this way you lose the selected country (check the javadoc for DDC). Wicket Models may be hard to grasp at first, I suggest you read the wiki again. Remember: component's are just components they don't (or at least shouldn't) store domain objects. Models do that. If you pass a List to DropDownChoice it will be wrapped in a static Model in the constructor and won't be affected by later changes. If you pass in a Model which calls getCountries() on each request - your Model will refresh the list on each request. My solution for you would be to write: countries = new DDC("country", new PropertyModel(this, "countries), new CountryChoiceRenderer()); This of course needs a CompoundPropertyModel somewhere up the component tree that stores a bean that has getCountry() and setCountry() methods... If you want to store your selected country elsewhere, you will need something similar to the following code: countries = new DDC("country", new PropertyModel(countryBean, "selectedCountry"), new PropertyModel(this, "countries), new CountryChoiceRenderer()); -- János Cserép - [EMAIL PROTECTED] Mobile: +36 20 4328730 Web: http://www.szeretgom.hu Skype: cserepj - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user