Re: [Wicket-user] validator.w3.org validation
The problem here is another one - not with wicket tags or attributes, but with wicket-generated links. They use a simple ampersand between GET-parameters, which should be xml-encoded in an XHTML document (amp; instead of ). It works in every browser like this, but is not valid XML. -- greetings from Berlin, Rüdiger Schulz www.2rue.de 2007/7/20, Eelco Hillenius [EMAIL PROTECTED]: I don't know... I would still go for XML schema. DTDs don't know namespaces, so anything you do with them will be a hack imho. Over the last two years, I think various people have made a go at it, and tbh I'm not sure whether anyone had the final working DTD or whether they just gave up on it. This issue is still open http://issues.apache.org/jira/browse/WICKET-693. We really need a good patch from someone who cares enough about getting it right. Cheers, Eelco - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:remove/ does not allow wicket component tags
2007/6/28, Igor Vaynberg [EMAIL PROTECTED]: isnt it as easy as? wicket:remove!-- whatever --wicket:remove But then whatever will be invisible in preview as well, won't it? -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions
2007/6/23, Robert . [EMAIL PROTECTED]: this is better because if you use applications to hold non-proxied daos you have to be very careful not to leave a reference to it anywhere. because dependencies injected throgh @SpringBean are special proxies you dont have to worry about it because the proxies can be safely serialized. I do understand that. But isn't it very easy to avoid it? For example the PersonClass would be something like this: class PersonModel extends LoadableDetachableModel { private final long id; public PersonModel(long id) { this.id=id; } private PersonDao getDao() { return MyApplication.get().getPersonDao(); ... } With this getter there is no temptation to save the DAO as a field. With the above approach you have a dependency from your model to your Application class. Not everybody wants this. If it works for you, go ahead :-) AFAIK there is not a fatal problem with this. The pros and cons of both approaches are discussed in the wiki as well: http://cwiki.apache.org/WICKET/spring.html -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [announce] Apache Wicket
Fantastisch! Congratulations to everyone on the team! It is very nice to see Wicket's success evolving more and more. greetings, Rüdiger 2007/6/20, Martijn Dashorst [EMAIL PROTECTED]: We have Graduation! Apache Wicket is established as a top level project within the Apache Software Foundation. From Greg Stein: Original Message Subject: Apache Board Meeting, June 20, 2007 (new officers!) Date: Wed, 20 Jun 2007 12:45:06 -0700 From: Greg Stein Reply-To: members@ To: members@ Hi all, Today, the newly-elected Board met for the first time. After we got done with our regular series of project reviews and other reports, we elected a new slate of executive officers. I'm happy to present that list: Jim Jagielski, Chairman Justin Erenkrantz, President J Aaron Farr, Treasurer Sam Ruby, Exec VP and Secretary Welcome guys to your new offices! We also established new three projects: * Apache Quetzalcoatl: this springs mod_python and related bits out of the HTTPD project into its own TLP. Gregory Trubetskoy is its Chair. * Apache Wicket: this is a light webapp framework for Java, graduating from the Incubator into its own TLP. Martijn Dashorst is the new Chair. * Apache Commons: this is the venerable Apache Jakarta Commons, now spun out into its own TLP, with Torsten Curdt as its Chair. Finally, we swapped a couple PMC Chairs: * Will Glass-Hussin replaces Henning Schmiedehausen as the Velocity Chair * David Sean Taylor replaces Santiago Gala as the Portals Chair That's it for this month. Please feel free to forward this to any public/private forum as you see fit. If you have any questions, then please don't hesitate to ask myself or any other Director or officer. Cheers, -g We would like to congratulate all Wicket community members with this remarkable feat, we couldn't have done this without you! Furthermore, I like to thank the Board of the Apache Software Foundation for the trust they invested in us. We will not disappoint! We would like to thank Wicket's mentors: * Alex Karasulu (whose birthday coincidentally is today… what a better gift could you receive). Thanks for bringing us on board, and a Happy Birthday!!! * Upayavira, who made the transition even run smoother than thought possible. Thanks for guiding us and I hope you'll stay for a long time with our project! * Bertrand Delacretaz, thank you for your help, votes and advise. We will miss your involvement, but will certainly see you in the future! * Sylvain Wallez, also big thanks for helping and guiding us. I hope Wicket is still working within Joost Finally, congratulations to the new officers, PMC Chairs and the other two new projects: Apache Quetzalcoatl and Apache Commons! Welcome to the club! !!! Champagne !!! - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Customer management of site after development is completed
In my (humble) oponion, I'd say this is hardly possible, at least not in a satisfactory way. You will have to find some compromise with your customer on what parts can be redesigned and which not. Sure, there are good ways to edit a Wicket application say with Dreamweaver. But still you have to consider the component hierarchie and possibly some Markup hierarchie. To ease the pain, you could provide her with Junit tests and a linked batch file, so that she can test beforehand, and maybe fix some stuff - if she can interpret the error messages correctly. Maybe your best bet is if you just say that the layout can be changed by CSS only. Show her csszengarden.com. Many things can be done with CSS, if your HTML is generic enough. For easy maintence you could provide a little form where the CSS can be uploaded and changed. And it's harder to completely mess up in CSS. HTH, Rüdiger 2007/6/18, Tauren Mills [EMAIL PROTECTED]: Earlier I asked how to relocate html, css, and other resources away from the Java code and Al Maw gave me some good help in IRC. In our conversation, he helped me to realize that the approach I was planning would not work the way I had desired. I'd like to find out how others on the list have handled this situation for their clients. I am building a simple wicket database app for a client. The client would like to be able to update the static content on the site. In addition, she would like to change the site design in the distant future if she wants a new look down the road. She is not a programmer or designer in the least. She built her original site with FrontPage (ick!) and would like to be able to continue editing her site. I've made it clear that she will no longer be able to use FrontPage, but that I will provider her with a way to make edits to her site. One of the main reasons I like wicket is because of the pure separation of layout and logic. But how does one go about giving access to the layout to an unskilled person? She could easily mess up the component hierarchy in the html. And she certainly doesn't know how to deploy a war file. I've thought about creating a simple CMS system for the static content in the html pages. But that really isn't in the scope of the project. Maybe it should be. I could extract all static content into properties files and use Labels all over, then have the app search for properties files somewhere external from the war on the web server. But neither of these will help if she wants to redesign the layout of the site and needs to edit the html/css. Basically, I need to be able to finish this project and walk away from it. I don't want to forever more be her webmaster whenever she wants little changes made to the site. How would you handle this? I'd love some ideas. Thanks, Tauren - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Prototype scoped Spring beans
I finally had the time to try this out. The re-injection after de-serialization apparently works now. However, the problems didn't stop there, as I was accessing DAOs and an EntityManager from within this bean. I read more stuff on that ( the book Java Persistence with Hibernate covers this pattern quite well), and came to the conclusion that all the trouble involved is not worth it in this particular case. Just to put some more detail to this: I developed this particular bean as a stateful EJB on Jboss. But as development on Jboss is often very slow when you have to restart your server (at least compared to Jetty), I switched to Spring. This solved some (not all!) of the problems I had there, but raised the ones I discussed in this thread. At least with the current state, I would discourage anyone implementing long conversations within spring beans. Some of the magic happening in EJB (like propagating the right EntityManager to your stateful DAOs) is just not there yet; or at least I don't see it :) The following thread was not very encouraging either: http://forum.springframework.org/showthread.php?t=39523highlight=long+conversation Still, thanks a lot again, Igor. In some other context, this might very well become useful. Rüdiger 2007/6/13, Rüdiger Schulz [EMAIL PROTECTED]: Igor, that makes perfect sense, thank you very much. I still have to try it, but if it works with @Configurable, this will be great! It is definitely better than implementing readResolve(), and manually injecting the dependencies via reflection, as someone suggested on the myfaces list. I'll post my experience after trying it. Rüdiger 2007/6/12, Igor Vaynberg [EMAIL PROTECTED]: if you think about it, your problem comes from the fact that you do not want to serialize this stateful bean because it has references to other beans which are not serializable and yet you want to put it into httpsession. the requirement of anything you put into httpsession is that it _is_ serializable for replication to other server nodes, etc. - unless you use some nonstandard replication technique. shale will run into the same limitation. its dialog scope is pretty much the same as making something a field of a page. that field is there while the page is, and is then cleaned up when the page is not needed. however it runs into the same limitation because it most likely uses httpsession for storing that dialog-scoped data and thus you are back to serialization problem. now a solution i see is thus. make this bean @Configurable and serializable. keep all dependencies in transient vars. that way when the bean is serialized its dependencies are not, and when it is deserialized i think @Configurable wires in an intercept that will reinject the bean. that way you get the best of both worlds. makes sense? -igor On 6/12/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: 1) Convert the bean to a stateless service, and keep the state in another bean. 2) Make the bean references transient, and re-fetch them manually (i.e. without DI from spring) after de-serialization. There is nothing wrong with 1), I use it in other parts of my app. It sure would be nice to have stateful beans with DI-ed application logic, but 2) seems very clumsy. However, later in the above thread, someone mentions the dialog feature of Shale: http://mail-archives.apache.org/mod_mbox/myfaces-users/200609.mbox/[EMAIL PROTECTED] Maybe something like that could be applied to wicket as well? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- greetings from Berlin, Rüdiger Schulz www.2rue.de -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Prototype scoped Spring beans
Igor, that makes perfect sense, thank you very much. I still have to try it, but if it works with @Configurable, this will be great! It is definitely better than implementing readResolve(), and manually injecting the dependencies via reflection, as someone suggested on the myfaces list. I'll post my experience after trying it. Rüdiger 2007/6/12, Igor Vaynberg [EMAIL PROTECTED]: if you think about it, your problem comes from the fact that you do not want to serialize this stateful bean because it has references to other beans which are not serializable and yet you want to put it into httpsession. the requirement of anything you put into httpsession is that it _is_ serializable for replication to other server nodes, etc. - unless you use some nonstandard replication technique. shale will run into the same limitation. its dialog scope is pretty much the same as making something a field of a page. that field is there while the page is, and is then cleaned up when the page is not needed. however it runs into the same limitation because it most likely uses httpsession for storing that dialog-scoped data and thus you are back to serialization problem. now a solution i see is thus. make this bean @Configurable and serializable. keep all dependencies in transient vars. that way when the bean is serialized its dependencies are not, and when it is deserialized i think @Configurable wires in an intercept that will reinject the bean. that way you get the best of both worlds. makes sense? -igor On 6/12/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: 1) Convert the bean to a stateless service, and keep the state in another bean. 2) Make the bean references transient, and re-fetch them manually (i.e. without DI from spring) after de-serialization. There is nothing wrong with 1), I use it in other parts of my app. It sure would be nice to have stateful beans with DI-ed application logic, but 2) seems very clumsy. However, later in the above thread, someone mentions the dialog feature of Shale: http://mail-archives.apache.org/mod_mbox/myfaces-users/200609.mbox/[EMAIL PROTECTED] Maybe something like that could be applied to wicket as well? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Prototype scoped Spring beans
Here is a post on the spring forum on that matter: http://forum.springframework.org/showthread.php?t=35968 And one on the myfaces list (JSF has the same problem): http://mail-archives.apache.org/mod_mbox/myfaces-users/200609.mbox/[EMAIL PROTECTED] What I read there are two ways to go: 1) Convert the bean to a stateless service, and keep the state in another bean. 2) Make the bean references transient, and re-fetch them manually (i.e. without DI from spring) after de-serialization. There is nothing wrong with 1), I use it in other parts of my app. It sure would be nice to have stateful beans with DI-ed application logic, but 2) seems very clumsy. However, later in the above thread, someone mentions the dialog feature of Shale: http://mail-archives.apache.org/mod_mbox/myfaces-users/200609.mbox/[EMAIL PROTECTED] Maybe something like that could be applied to wicket as well? 2007/6/11, Rüdiger Schulz [EMAIL PROTECTED]: I read on the wiki that serializing spring beans is a problem because of injected references. So what I want is something from spring which it probably cannot give me. But I will try to clear this up on the spring forum. 2007/6/7, Igor Vaynberg [EMAIL PROTECTED]: hrm. you say you will have a serialization problem if you lookup the bean directly and hold on to it. but isnt that exactly what you want? to pull out a prototype bean and keep it inside the form's scope? the form is in httpsession and so the bean will be serialized. so if that is what you want to do you have to make sure the bean is serializable and do the lookup yourself. we can probably add @SpringBean(transient=false) or something like that to keep the reference instead of discarding it, but that wont solve your serialization problem, it will just save you doing the lookup yourself. so what exactly do you want? -igor On 6/3/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: I put a breakpoint in the constructor of my Form, which has the @SpringBean annotation on ia property named logic. Before the super() call, logic is null. After that, it is set to $Proxy39, with a h-attribute to a org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler. The target property of the handler is null. After the next line, where I call a method from logic, the target property is set to the bean instance. So it seems that the reference gets lost in the first call. But, as you said that the bean is transient anyway, I think that prototype beans could not be used that way for holding state of wicket components, because that state should certainly also be kept when using the back button. I'm not sure what is best then. I could get a reference to the spring bean directly from ApplicationContext, and just keep it. But then I would face the problem of serialization. The best thing would be IMHO if the proxy could somehow do an automatic re-lookup from Spring for prototype beans, so that not a new instance is fetched from the container, but the same as before. But I don't know enough about Spring to say if that is even possible. 2007/6/3, Eelco Hillenius [EMAIL PROTECTED]: I'm not that familiar with the code, but the interesting thing is that LazyInitProxyFactory$JdkHandler does cache the bean it located: if (target == null) { target = locator.locateProxyTarget(); } return proxy.invoke(target, args); The target is a transient member of JdkHandler and judging from the code, once the bean is located it should just be reused until the page is serialized/ deserialized (for backbutton support or when clustered). Can you use you debugger to find out what exactly happens? Eelco On 6/1/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Right, forgot the Stacktraces: The first when calling super(): at KitManagementBean.init(KitManagementBean.java:34) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance( NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance( Constructor.java :513) at org.springframework.beans.BeanUtils.instantiateClass( BeanUtils.java:85) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate (SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean (AbstractAutowireCapableBeanFactory.java:732) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:720
Re: [Wicket-user] Prototype scoped Spring beans
I read on the wiki that serializing spring beans is a problem because of injected references. So what I want is something from spring which it probably cannot give me. But I will try to clear this up on the spring forum. 2007/6/7, Igor Vaynberg [EMAIL PROTECTED]: hrm. you say you will have a serialization problem if you lookup the bean directly and hold on to it. but isnt that exactly what you want? to pull out a prototype bean and keep it inside the form's scope? the form is in httpsession and so the bean will be serialized. so if that is what you want to do you have to make sure the bean is serializable and do the lookup yourself. we can probably add @SpringBean(transient=false) or something like that to keep the reference instead of discarding it, but that wont solve your serialization problem, it will just save you doing the lookup yourself. so what exactly do you want? -igor On 6/3/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: I put a breakpoint in the constructor of my Form, which has the @SpringBean annotation on ia property named logic. Before the super() call, logic is null. After that, it is set to $Proxy39, with a h-attribute to a org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler. The target property of the handler is null. After the next line, where I call a method from logic, the target property is set to the bean instance. So it seems that the reference gets lost in the first call. But, as you said that the bean is transient anyway, I think that prototype beans could not be used that way for holding state of wicket components, because that state should certainly also be kept when using the back button. I'm not sure what is best then. I could get a reference to the spring bean directly from ApplicationContext, and just keep it. But then I would face the problem of serialization. The best thing would be IMHO if the proxy could somehow do an automatic re-lookup from Spring for prototype beans, so that not a new instance is fetched from the container, but the same as before. But I don't know enough about Spring to say if that is even possible. 2007/6/3, Eelco Hillenius [EMAIL PROTECTED]: I'm not that familiar with the code, but the interesting thing is that LazyInitProxyFactory$JdkHandler does cache the bean it located: if (target == null) { target = locator.locateProxyTarget(); } return proxy.invoke(target, args); The target is a transient member of JdkHandler and judging from the code, once the bean is located it should just be reused until the page is serialized/ deserialized (for backbutton support or when clustered). Can you use you debugger to find out what exactly happens? Eelco On 6/1/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Right, forgot the Stacktraces: The first when calling super(): at KitManagementBean.init(KitManagementBean.java:34) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance( NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java :513) at org.springframework.beans.BeanUtils.instantiateClass( BeanUtils.java:85) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate (SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean (AbstractAutowireCapableBeanFactory.java:732) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:720) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:386) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean( AbstractBeanFactory.java:270) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean( AbstractBeanFactory.java:164) at org.springframework.context.support.AbstractApplicationContext.getBean( AbstractApplicationContext.java:707) at org.apache.wicket.spring.SpringBeanLocator.lookupSpringBean (SpringBeanLocator.java:240) at org.apache.wicket.spring.SpringBeanLocator.locateProxyTarget( SpringBeanLocator.java:163) at org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.testLocator (AnnotProxyFieldValueFactory.java:124) at org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getFieldValue (AnnotProxyFieldValueFactory.java:99
Re: [Wicket-user] Injecting session scoped beans with wicket-spring-annot
As requested in the other thread, there is now an issue in JIRA: https://issues.apache.org/jira/browse/WICKET-613 I appended a link to this thread as well. Rüdiger 2007/6/4, Daniel Stoch [EMAIL PROTECTED]: It seems that in Wicket 1.3 session and request scoped beans work ok. But I've done only a very simple tests. PS. The problem with prototype scoped beans (multiple instance creation) still exists. Daniel On 6/1/07, Daniel Stoch [EMAIL PROTECTED] wrote: Hi, I want to inject a spring bean with scope=session into my page using @SpringBean annotation. I have added into my web.xml declaration: listener listener-class org.springframework.web.context.request.RequestContextListener /listener-class /listener but it seems that this bean is still created once for whole application (like a singleton). Does session and request scoped beans are supported by wicket-spring-annot (and of course wicket-spring) library or have I missed something in my configuration? PS. Singletons and prototypes works ok. I'm using Wicket 1.2.6. Best regards, Daniel Stoch - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Prototype scoped Spring beans
I put a breakpoint in the constructor of my Form, which has the @SpringBean annotation on ia property named logic. Before the super() call, logic is null. After that, it is set to $Proxy39, with a h-attribute to a org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler. The target property of the handler is null. After the next line, where I call a method from logic, the target property is set to the bean instance. So it seems that the reference gets lost in the first call. But, as you said that the bean is transient anyway, I think that prototype beans could not be used that way for holding state of wicket components, because that state should certainly also be kept when using the back button. I'm not sure what is best then. I could get a reference to the spring bean directly from ApplicationContext, and just keep it. But then I would face the problem of serialization. The best thing would be IMHO if the proxy could somehow do an automatic re-lookup from Spring for prototype beans, so that not a new instance is fetched from the container, but the same as before. But I don't know enough about Spring to say if that is even possible. 2007/6/3, Eelco Hillenius [EMAIL PROTECTED]: I'm not that familiar with the code, but the interesting thing is that LazyInitProxyFactory$JdkHandler does cache the bean it located: if (target == null) { target = locator.locateProxyTarget(); } return proxy.invoke(target, args); The target is a transient member of JdkHandler and judging from the code, once the bean is located it should just be reused until the page is serialized/ deserialized (for backbutton support or when clustered). Can you use you debugger to find out what exactly happens? Eelco On 6/1/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Right, forgot the Stacktraces: The first when calling super(): at KitManagementBean.init(KitManagementBean.java:34) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:732) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:720) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:270) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:707) at org.apache.wicket.spring.SpringBeanLocator.lookupSpringBean(SpringBeanLocator.java:240) at org.apache.wicket.spring.SpringBeanLocator.locateProxyTarget(SpringBeanLocator.java:163) at org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.testLocator(AnnotProxyFieldValueFactory.java:124) at org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getFieldValue(AnnotProxyFieldValueFactory.java:99) at org.apache.wicket.injection.Injector.inject(Injector.java:109) at org.apache.wicket.injection.ConfigurableInjector.inject(ConfigurableInjector.java:40) at org.apache.wicket.injection.ComponentInjector.onInstantiation(ComponentInjector.java:54) at org.apache.wicket.Application.notifyComponentInstantiationListeners(Application.java:916) at org.apache.wicket.Component.init(Component.java:708) at org.apache.wicket.MarkupContainer.init(MarkupContainer.java:111) at org.apache.wicket.markup.html.WebMarkupContainer.init(WebMarkupContainer.java:39) at org.apache.wicket.markup.html.form.Form.init(Form.java:233) at KitForm.init(KitForm.java:50) at KitEditPage.init(KitEditPage.java:45) And from the next line, where I call a method on the bean: at KitManagementBean.init(KitManagementBean.java:34) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39
Re: [Wicket-user] Prototype scoped Spring beans
Right, here it is: https://issues.apache.org/jira/browse/WICKET-613 Thanks for checking this out. Rüdiger 2007/6/3, Eelco Hillenius [EMAIL PROTECTED]: Could you please open up a JIRA issue for this with a link to this discussion? I think it is something Igor might have an idea about (but he's no a vacation now). Eelco On 6/3/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: I put a breakpoint in the constructor of my Form, which has the @SpringBean annotation on ia property named logic. Before the super() call, logic is null. After that, it is set to $Proxy39, with a h-attribute to a org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler. The target property of the handler is null. After the next line, where I call a method from logic, the target property is set to the bean instance. So it seems that the reference gets lost in the first call. But, as you said that the bean is transient anyway, I think that prototype beans could not be used that way for holding state of wicket components, because that state should certainly also be kept when using the back button. I'm not sure what is best then. I could get a reference to the spring bean directly from ApplicationContext, and just keep it. But then I would face the problem of serialization. The best thing would be IMHO if the proxy could somehow do an automatic re-lookup from Spring for prototype beans, so that not a new instance is fetched from the container, but the same as before. But I don't know enough about Spring to say if that is even possible. 2007/6/3, Eelco Hillenius [EMAIL PROTECTED]: I'm not that familiar with the code, but the interesting thing is that LazyInitProxyFactory$JdkHandler does cache the bean it located: if (target == null) { target = locator.locateProxyTarget(); } return proxy.invoke(target, args); The target is a transient member of JdkHandler and judging from the code, once the bean is located it should just be reused until the page is serialized/ deserialized (for backbutton support or when clustered). Can you use you debugger to find out what exactly happens? Eelco On 6/1/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Right, forgot the Stacktraces: The first when calling super(): at KitManagementBean.init(KitManagementBean.java:34) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:732) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:720) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:270) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:707) at org.apache.wicket.spring.SpringBeanLocator.lookupSpringBean(SpringBeanLocator.java:240) at org.apache.wicket.spring.SpringBeanLocator.locateProxyTarget(SpringBeanLocator.java:163) at org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.testLocator(AnnotProxyFieldValueFactory.java:124) at org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getFieldValue(AnnotProxyFieldValueFactory.java:99) at org.apache.wicket.injection.Injector.inject(Injector.java:109) at org.apache.wicket.injection.ConfigurableInjector.inject(ConfigurableInjector.java:40) at org.apache.wicket.injection.ComponentInjector.onInstantiation(ComponentInjector.java:54) at org.apache.wicket.Application.notifyComponentInstantiationListeners(Application.java:916) at org.apache.wicket.Component.init(Component.java:708) at org.apache.wicket.MarkupContainer.init(MarkupContainer.java:111
Re: [Wicket-user] Injecting session scoped beans with wicket-spring-annot
Hello, 2007/6/2, Daniel Stoch [EMAIL PROTECTED]: [] When I enter this page first time in a browser there is the following output: Constructor B - 1 Constructor A - 2 Constructor B - 3 This is a sample welcome text for Spring bean 3 So as you can see there are 3 calls to SimpleBean constructor, including one default constructor call (so it looks like 3 instances of this class was created). I encountered the same behavior; one construction during init, and another when making the first use of the class. Not sure if this is ok, but I don't think so. [...] When I comment a default no-argument constructor code, I've received an error: java.lang.IllegalArgumentException: Superclass has no null constructors but no arguments were given I think this is another issue. If you define an interface for your bean, and make all your calls through that, it shouldn't happen anymore, and you could omit your null-constructor. -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Injecting session scoped beans with wicket-spring-annot
Hello, I can't say anything about request or session scoped beans. But I am interested in how you use prototype-scoped beans. Do you use them to store the state of your Wicket-components? I have some problems with that (which I posted earlier)... 2007/6/1, Daniel Stoch [EMAIL PROTECTED]: Hi, I want to inject a spring bean with scope=session into my page using @SpringBean annotation. I have added into my web.xml declaration: listener listener-class org.springframework.web.context.request.RequestContextListener /listener-class /listener but it seems that this bean is still created once for whole application (like a singleton). Does session and request scoped beans are supported by wicket-spring-annot (and of course wicket-spring) library or have I missed something in my configuration? PS. Singletons and prototypes works ok. I'm using Wicket 1.2.6. Best regards, Daniel Stoch - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with jsessionid in mounted Resources
Ah, good advice. I actually need the Session in the Resource, as some images have restrictions on who is allowed to see them. So, instead of stripping the jsessionid, I will create my links for the src attribute in a way that it they will look like this: /images/thumbnail/20.png;jsessionid=1ar97uck8ovr5 I also tried to follow the internal flow on how getRequestParameters().getPath() is resolved, and I see that Strings.sripJsessionid() is called, and this omits everything beginning with the jsessionid and ending with a question-marked-separated querystring. In my case, the query was appended with a slash... 2007/5/26, Johan Compagner [EMAIL PROTECTED]: what you could do is just stripoff (regexp replace) the jsession id of the url you can only do this is you don't acess the session in your resource and i guess you don't do that because you only need the url to stream the resource right? johan On 5/25/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello all, I have (or had) a problem with mounted Resources and an iserted jsessionid. My goal is, as discussed here before: http://www.nabble.com/Bookmarkable-images-tf3706668.html#a10383150 , to have dynamic image URLs with just slashes and no question-mark-separated querystring, like this: /images/thumbnail/20.png What I did was in short this: Subclassed WebResource like this: public IResourceStream getResourceStream() { String path = RequestCycle.get().getRequest().getRequestParameters().getPath(); // ... parse path, return ResourceStream // path should be images/thumbnail/20.png } In my Application.init(): getSharedResources().add(imageDataResource, new ImageDataResource()); mountSharedResource(ImageDataResource.MOUNT_PATH, new ResourceReference(imageDataResource).getSharedResourceKey()); Then a custom WebComponent, where I have an AttributeModifier for the src attribute, where I compile the src like this: ResourceReference resRef = new ResourceReference(imageDataResource); String src = urlFor(resRef); src += thumbnail/20.png; // this is dynamic in the application This all works almost perfect. It stops working when someone has disabled cookies, and jsessionid is added to all URLs. Then they look a little strange like this: /images;jsessionid=1ar97uck8ovr5/thumbnail/20.png because urlFor(resRef) returns /images;jsessionid=1ar97uck8ovr5 With such a URL, the command getRequestParameters().getPath() returns simply images, and all additional path info is lost. Now, my first take at a solution would be to take the jsessionid into consideration when building my URLs, so that they look like this: /images/thumbnail/20.png;jsessionid=1ar97uck8ovr5 But maybe this is just a workaround for something I did wrong at another place? -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with jsessionid in mounted Resources
Hello, 2007/5/25, Korbinian Bachl [EMAIL PROTECTED]: Hi, i dont see the current problem but why dont you just go an easier way in using IndexedParamUrlCoding strategy? e.g: - create 1 normal Wicket WebPage having a (PageParameters params) strategy - mount that page in the init() using mount(new IndexedParamUrlCodingStrategy(/images)); then the page is responsible for all calls to /images/* I already use this for a lot of my pages, and it is very nice to use of course. But how do I deliver a binary image via a page? Is this even possible? -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] form silently failing to load data when template and pojo are different
Hello Florian, could you provide a quickstart showing this problem? What version of Wicket are you using? With these information, the developers might find and fix the bug. .rue 2007/5/23, Florian Hehlen [EMAIL PROTECTED]: hi, I have just found that if a form contains an input type=text/ and the corresponding pojo contains myForm.add(new TextAre(...)) then wicket fails to load data into the form but it will correctly read the data onSubmit. is this a known bug it sure took me a long time to resolve it. regards, Florian. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Exception Strategy in 1.3
Make a subclass of WebRequestCycle, and override onRuntimeException(). Works like a charm for me. 2007/5/22, craigdd [EMAIL PROTECTED]: True the wicket session is mandatory, thanks for pointing that out. As for my question though, I'm looking for the best way to implement this strategy. I could override the respond method in RequestCycle, but I'd have to rewrite the given logic, which most of it I want. I'm wondering if there are any other hooks that I can implement that leaves the respond method alone but have the exception and internal page available. -Craig Mr Mean wrote: As far as i know the wicket session is mandatory in wicket but that does not mean you have to use it to store information. Other then that i see no reason why your proposed strategy should not work. Maurice On 5/22/07, craigdd [EMAIL PROTECTED] wrote: Basically what I want to do is set the internal error page to my own internal page, i.e. my login page, and add a message from the a resource bundle, .properties file, that includes an error code that is generated from an internal RuntimeException. Another requirement is that a Session is optional, meaning that this should work with or without a Session. -Craig craigdd wrote: What is the best way to implement your own exception strategy in wicket 1.3? I want to add some added logic to my application when an unexcepted exception occurs. During this added logic I want a handle on the page that is being redirected to, ie the internal error page. Thanks Craig -- View this message in context: http://www.nabble.com/Exception-Strategy-in-1.3-tf3793570.html#a10730008 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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/Exception-Strategy-in-1.3-tf3793570.html#a10737906 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] repeating the same text in several places on one page
If you're not displaying a list of users, but want to display the same username on several places on your page, there is no real idiom. Maybe call them according to where they are put, like userMenuBar, userSideBar, etc. .rue 2007/5/14, Lowell Kirsh [EMAIL PROTECTED]: Is there an idiom for naming these labels, or do people tend to call them user1, user2, user3...? On 5/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you cannot reuse the same label more then once in markup. there are various reasons for this that have to do with how wicket works internally. what you can do is reuse the instance of model that drives the labels. -igor On 5/13/07, Lowell Kirsh [EMAIL PROTECTED] wrote: I'd like to repeat the same thing in several spots on the same page. Does this mean that I have to create several labels? Or is there a way I could have them all reference the same label? Thanks, Lowell - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Where is the mailing list archive?
Be sure to check out the archive on nabble as posted by Igor. It is way better in terms of navigation and search cababilities. 2007/5/14, Mark van Leeuwen [EMAIL PROTECTED]: OK I got the link from mailing list attachments. http://sourceforge.net/mailarchive/forum.php?forum_name=wicket-user (Slightly different to the link on http://wicketframework.org/mail-lists.html : http://sourceforge.net/mailarchive/forum.php?forum=wicket-user) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark van Leeuwen Sent: Monday, 14 May 2007 3:37 PM To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Where is the mailing list archive? I've just joined the mailing list and wish to search the archive so that I don't bother you with questions already answered. But where is the archive? The archive links on http://wicketframework.org/mail-lists.html result in errors and searching on sourceforge yields nothing. Mark - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Complete JavaDocs
Hello everybody, I was wondering if there are complete Wicket Javadocs somewhere available online. That is, all modules together in one. Same goes for Wicketstuff. I wrote an ant script which would generate this for me for offline viewing, but this could be altered to work online very easily. I think it would be very valuable as well to have direkt links to 3rd party JavaDocs such as Spring or even just the JDK. I blogged a little howto on this, and put the ant script here for download: http://www.2rue.de/wicket/wicket-javadoc.build.xml The problem I see with this - it is not driven by maven. It is more or less hardcoded. Would it be possible to define a similar task in maven (I'm not very much inside maven's plugins)? And apart from that, would it be useful if I compile complete Wicket and WicketStuff JavaDocs for online viewing with my script, and put them online somewhere? Currently, they are using the current trunk for both. -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Autolinkresolver within Panel code
Hello, I am currently migrating my application from 1.2 to 1.3 Snapshot. So far this went very well. But now I have a little problem: All my pages are subclassed from a common basepage. That page has a Panel with login information and some links. On the basepage-markup, the html of the panel is copied to enable an offline preview for my webdesigner (he can work on the templates from within Dreamweaver). The links have a href attribute, so that offline navigation is possible. This worked well in 1.2. In 1.3, I get a markup error at the start of the link: org.apache.wicket.markup.MarkupException: Expected close tag for div id=loginInfoPanel0 wicket:id=loginInfoPanel The page being reported to have a problem is the subpage (!). Now when I remove the href from the links in the basepage (!), all pages render fine, although the links are still there in the subpage-markups, though outside of wicket:extend. So, in this case it was not that big of a deal, but I think this problem might come again. I think it has something to do with Autolinkresolver trying to generate new links in places where he shouldn't. Is it possible to disable this? Should I file a JIRA for this, maybe with a little quickstart? Or am I expecting too much here anyway? I had a similar problem with reproducing panel code to the base page in 1.2 - so where was that current version of this wicket:preview JavaScript again ;-) -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Bookmarkable images
Hello, thanks a lot for both suggestions :) A mounted DynamicImageResource looks interesting, but as I see it, there would be a mount for every single image? Or is it somehow possible to mount a shared resource in a way that a parameter can be passed? I have a lot of images, and user can create new ones... So going the way Jeremy provided, I would do the following: 1. Extend an AbstractRequestUrlCodingStrategy, where I will define how the path will be interpreted (quite similar to how I do it in my servlet a.t.m.). 2. decode() would return a ResourceStreamRequestTarget, which uses a IResourceStream, which will deliver the image data. 3. Implement a WebComponent, where in onComponentTag() the src attribute will be generated to match my strategy from above. Are there any objections on this, or should it work? This thread promises an example, but I couldn't find one in the wiki: http://www.nabble.com/Joost-uses-Wicket-tf3390296.html#a9791575 (Jean-Baptiste seems to work on some kind of picture gallery as well :) I'm actually not sure what to do in RequestUrlCodingStrategy.encode(IRequestTarget), and where it would be called in this case. .Rüdiger 2007/5/8, Igor Vaynberg [EMAIL PROTECTED]: you can also implement your own DynamicImageResource, and add it to shared resources webapp.getsharedresources().add(images, new MyDynamicImageResource()); urls for shared resources are stable, and you can also mount them. -igor On 5/7/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: I've done a lot of custom URL encoding / decoding to keep very clean, search-engine friendly URLs in our application. The place I would start would be to mount a custom IRequestTargetUrlCodingStrategy in your WebApp class. Here's some code that might help as a starting point: private final Pattern mRequestPattern = Pattern.compile(getMountPath() + /([0-9]*)/.*); public boolean matches(RequestParameters rp) { return mRequestPattern.matcher(rp.getPath()).matches(); } public IRequestTarget decode(RequestParameters rp) { Matcher matcher = mRequestPattern.matcher(rp.getPath ()); matcher.find(); String strID = matcher.group(1); int id = -1; try { id = Integer.parseInt(strID); } catch (NumberFormatException nfe) { throw new IllegalArgumentException(strID + is not a valid ID); } IFooService svc = getBean(IFooService.class); return new PageRequestTarget(new FooPage( svc.findByID(id))); } Jeremy Thomerson On 5/7/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello everybody, in my application, I'm currently serving images with a special servlet. It accepts request paths like /app/images/42.gif. The images themself are stored in a database. I like this approach, because the image URLs are static, and by that they can be cached by proxies and stored as bookmarks in browsers. I integrate this servlet with a custom WebComponent in my Wicket pages, where I compile the correct path. This all works very well, but now I'd like to convert this servlet into a Wicket component. It needs the same behavior (static urls), but I'd like to restrict access according to data in the current Wicket session. I think I know how to do this with a DynamicWebResource and all, but I have no idea how to do the URL binding. I don't know where to start at all. For pages there is the IndexedParamUrlCodingStrategy, but that won't do for images I guess... So, any help would be very welcome. Oh, and I'm still using Wicket 1.2.6; an update to 1.3 is planned, but cannot be done right now. If a solution would be much more easier in 1.3 than in 1.2, however, we might do it earlier or at least wait with the conversion of the Servlet until then. -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net
Re: [Wicket-user] Bookmarkable images
Hello Igor, Thanks again for your patience :) I found the page in the Wiki, it's here: http://cwiki.apache.org/WICKET/uploaddownload.html Now I know what to do! .rue 2007/5/8, Igor Vaynberg [EMAIL PROTECTED]: you would mount one image resource and read the image id from the url, there is an article on this somewhere in the wiki and if you want you can look at the pastebin code (papernapkin.com ), its hosted on berlious.de i believe. -igor On 5/8/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello, thanks a lot for both suggestions :) A mounted DynamicImageResource looks interesting, but as I see it, there would be a mount for every single image? Or is it somehow possible to mount a shared resource in a way that a parameter can be passed? I have a lot of images, and user can create new ones... So going the way Jeremy provided, I would do the following: 1. Extend an AbstractRequestUrlCodingStrategy, where I will define how the path will be interpreted (quite similar to how I do it in my servlet a.t.m.). 2. decode() would return a ResourceStreamRequestTarget, which uses a IResourceStream, which will deliver the image data. 3. Implement a WebComponent, where in onComponentTag() the src attribute will be generated to match my strategy from above. Are there any objections on this, or should it work? This thread promises an example, but I couldn't find one in the wiki: http://www.nabble.com/Joost-uses-Wicket-tf3390296.html#a9791575 (Jean-Baptiste seems to work on some kind of picture gallery as well :) I'm actually not sure what to do in RequestUrlCodingStrategy.encode(IRequestTarget), and where it would be called in this case. .Rüdiger 2007/5/8, Igor Vaynberg [EMAIL PROTECTED]: you can also implement your own DynamicImageResource, and add it to shared resources webapp.getsharedresources().add(images, new MyDynamicImageResource()); urls for shared resources are stable, and you can also mount them. -igor On 5/7/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: I've done a lot of custom URL encoding / decoding to keep very clean, search-engine friendly URLs in our application. The place I would start would be to mount a custom IRequestTargetUrlCodingStrategy in your WebApp class. Here's some code that might help as a starting point: private final Pattern mRequestPattern = Pattern.compile(getMountPath() + /([0-9]*)/.*); public boolean matches(RequestParameters rp) { return mRequestPattern.matcher(rp.getPath()).matches(); } public IRequestTarget decode(RequestParameters rp) { Matcher matcher = mRequestPattern.matcher(rp.getPath ()); matcher.find(); String strID = matcher.group(1); int id = -1; try { id = Integer.parseInt(strID); } catch (NumberFormatException nfe) { throw new IllegalArgumentException(strID + is not a valid ID); } IFooService svc = getBean(IFooService.class); return new PageRequestTarget(new FooPage( svc.findByID(id))); } Jeremy Thomerson On 5/7/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello everybody, in my application, I'm currently serving images with a special servlet. It accepts request paths like /app/images/42.gif. The images themself are stored in a database. I like this approach, because the image URLs are static, and by that they can be cached by proxies and stored as bookmarks in browsers. I integrate this servlet with a custom WebComponent in my Wicket pages, where I compile the correct path. This all works very well, but now I'd like to convert this servlet into a Wicket component. It needs the same behavior (static urls), but I'd like to restrict access according to data in the current Wicket session. I think I know how to do this with a DynamicWebResource and all, but I have no idea how to do the URL binding. I don't know where to start at all. For pages there is the IndexedParamUrlCodingStrategy, but that won't do for images I guess... So, any help would be very welcome. Oh, and I'm still using Wicket 1.2.6; an update to 1.3 is planned, but cannot be done right now. If a solution would be much more easier in 1.3 than in 1.2, however, we might do it earlier or at least wait with the conversion of the Servlet until then. -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2
Re: [Wicket-user] Button using button tag instead of input
Hello, I had to experience this awful MSIE behaviour in the past (with projects outside of wicket). The conclusion is, if you need more than one submit button in a form, and need to know which button was actually clicked, you cannot use button type=submit - unless you don't care about MSIE users. Not sure how MSIE 7 changed this behaviour. -- greetings from Berlin, Rüdiger Schulz www.2rue.de 2007/5/2, Johan Compagner [EMAIL PROTECTED]: ok i tested it. html body form method=get input type=text name=text value=text input type=button name=ibutton value=ibutton input type=submit name=isubmit value=isubmit input type=reset name=ireset value=ireset button type=button name=bbutton value=bbuttonbbutton/button button type=submit name=bsubmit value=bsubmitbsubmit/button button type=reset name=breset value=bresetbreset/button /form /body /html in FF those 2 are exactly the same there is no different the 2 type=buttons don't do anything the 2 type=reset both reset the fields the 2 type=submit both submits there own value and the value of the text input field. in IE there is one difference the 2 type=buttons don't do anything the 2 type=reset both reset the fields the 2 type=submit both submits there own value and the value of the text input field AND button type=button value is submitted. so pressing isubmit gives: ?text=textisubmit=isubmitbbutton=bbutton and pressing bsubmit gives: ?text=textbbutton=bbuttonbsubmit=bsubmit and in FF those bbutton=bbutton don't get appended. I think FF is doing it right because as far as i read thats the spec. johan On 5/2/07, Johan Compagner [EMAIL PROTECTED] wrote: But does the current build not work for you? i will try to create a test and to see what a button and input type=button and all the likes excactly do. johan On 5/2/07, Ryan Sonnek [EMAIL PROTECTED] wrote: I've created an issue in JIRA to track this issue: https://issues.apache.org/jira/browse/WICKET-521 Again, i don't have any preference on a solution, just that something works. Using the current Link object is *not* an option since it doesn't disable buttons correctly. On 5/1/07, Johan Compagner [EMAIL PROTECTED] wrote: Buttons can have a name and value: http://www.w3schools.com/tags/tag_button.asp http://www.htmlcodetutorial.com/forms/_BUTTON.html and some more examples and you see that they are pretty much equal to input type=xxx http://www.expertrating.com/courseware/XHTMLCourse/XHTML-Forms-4.asp and i still think it is stupid to have a Button component that can't be mapped on the button tag If we make an exception then Button should work for buttom and we should make some SubmitButton component for input type=submit thats much more logical. But this is not needed. We just need to figure out so that it works on both because they are the same except with one distinction: Inside a button element you can put content , like text or images. This is the difference between this element and buttons created with the input element. On 5/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: buttons dont need name either. they dont post. so how many exceptions are you making just for button? it is easier to simply attach a link. -igor On 5/1/07, Johan Compagner [EMAIL PROTECTED] wrote: Button is a FormComponent and all FormComponents are Containers so that works fine. if (Strings.isEqual(input, name)) { String value = getModelObjectAsString(); if (value != null !.equals(value)) { tag.put(value, value); } } so only if it is an input the value will be set. What about the name? johan On 5/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: in html button tag is a container, while our button component is not. so a link is a better match. did you also fix it so button doesnt add a value attr when it is attached to button? because button value=foo/ is illegal. -igor On 5/1/07, Johan Compagner [EMAIL PROTECTED] wrote: i fixed that again. that broke all our solutions and it just feels stupid that button doesn't map on the component Button Button class should just do its job looking where it is attached to. johan On 5/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: use link or submitlink. -igor On 4/30/07, Ryan Sonnek [EMAIL PROTECTED] wrote: I'm trying to use a wicket Button on an html button tag instead of an input tag, but wicket keeps
[Wicket-user] Bookmarkable images
Hello everybody, in my application, I'm currently serving images with a special servlet. It accepts request paths like /app/images/42.gif. The images themself are stored in a database. I like this approach, because the image URLs are static, and by that they can be cached by proxies and stored as bookmarks in browsers. I integrate this servlet with a custom WebComponent in my Wicket pages, where I compile the correct path. This all works very well, but now I'd like to convert this servlet into a Wicket component. It needs the same behavior (static urls), but I'd like to restrict access according to data in the current Wicket session. I think I know how to do this with a DynamicWebResource and all, but I have no idea how to do the URL binding. I don't know where to start at all. For pages there is the IndexedParamUrlCodingStrategy, but that won't do for images I guess... So, any help would be very welcome. Oh, and I'm still using Wicket 1.2.6; an update to 1.3 is planned, but cannot be done right now. If a solution would be much more easier in 1.3 than in 1.2, however, we might do it earlier or at least wait with the conversion of the Servlet until then. -- greetings from Berlin, Rüdiger Schulz www.2rue.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Replacing HtmlBodyContainer
Hello everybody, I just updated my application from Wicket 1.2.5 to 1.2.6. The update broke one of my pages, which had a rather special requirement: it needed to use my own implementation of HtmlBodyContainer. The way I did it was like this: public EmailPage() { remove(BodyOnLoadHandler.BODY_ID); add(new MyHtmlBodyContainer(BodyOnLoadHandler.BODY_ID); } see also: http://www.nabble.com/BodyContributor--tf2578291.html#a7187578 With 1.2.6 this does not work anymore. The remove throws the following Exception: Caused by: wicket.WicketRuntimeException: Unable to find a component with id '_body' to remove at wicket.MarkupContainer.remove(MarkupContainer.java:479) Just doing the add without the remove doesn't work either: Caused by: java.lang.IllegalArgumentException: A child with id '_body' already exists: [Page class = de.indyphone.logokits.wicket.ComposerPage, id = 21] at wicket.MarkupContainer.add(MarkupContainer.java:156) at wicket.markup.html.WebPage.getBodyContainer(WebPage.java:211) at wicket.markup.html.WebPage.internalOnAttach(WebPage.java:175) at wicket.Component.internalAttach(Component.java:2572) at wicket.MarkupContainer.internalAttach(MarkupContainer.java:341) So, where's the best location to put the code for replacing the BodyContainer? And will this then still work in 1.3? Thanks for your time, Rüdiger - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Replacing HtmlBodyContainer
Hello Igor, thanks for your help, it was a very close hit :) I actually had to put the code into internalOnttatch like this: protected void internalOnAttach() { super.internalOnAttach(); Component body=get(BodyOnLoadHandler.BODY_ID); if (body!=null) { if (!(body instanceof MyHtmlBodyContainer)) { remove(BodyOnLoadHandler.BODY_ID ); body=null; } } if (body==null) { add(new ...); } } Now I think it works as expected. Now that I know where to look for this - isn't it that now on every attach of the page first a new HtmlBodyContainer is created only to replaced instantly? Is that unnecessary component creation very costly, or shouldn't I worry about this? I'd rather not like to overwrite WebPage.getBodyContainer() by copying 99% of the code and just change the line adding the default HtmlBodyContainer - what I do seems to be enough of a hack already ;) greetings, Rüdiger 2007/4/29, Igor Vaynberg [EMAIL PROTECTED]: you can most likely move that code to page.onattach() and do Component body=get(BodyOnLoadHandler.BODY_ID); if (body!=null) { if (!(body instanceof MyHtmlBodyContainer)) { remove(BodyOnLoadHandler.BODY_ID ); body=null; } } if (body==null) { add(new ...); } -igor On 4/29/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello everybody, I just updated my application from Wicket 1.2.5 to 1.2.6. The update broke one of my pages, which had a rather special requirement: it needed to use my own implementation of HtmlBodyContainer. The way I did it was like this: public EmailPage() { remove(BodyOnLoadHandler.BODY_ID); add(new MyHtmlBodyContainer(BodyOnLoadHandler.BODY_ID); } see also: http://www.nabble.com/BodyContributor--tf2578291.html#a7187578 With 1.2.6 this does not work anymore. The remove throws the following Exception: Caused by: wicket.WicketRuntimeException: Unable to find a component with id '_body' to remove at wicket.MarkupContainer.remove(MarkupContainer.java:479) Just doing the add without the remove doesn't work either: Caused by: java.lang.IllegalArgumentException: A child with id '_body' already exists: [Page class = de.indyphone.logokits.wicket.ComposerPage, id = 21] at wicket.MarkupContainer.add(MarkupContainer.java:156) at wicket.markup.html.WebPage.getBodyContainer(WebPage.java:211) at wicket.markup.html.WebPage.internalOnAttach(WebPage.java:175) at wicket.Component.internalAttach(Component.java:2572) at wicket.MarkupContainer.internalAttach(MarkupContainer.java:341) So, where's the best location to put the code for replacing the BodyContainer? And will this then still work in 1.3? Thanks for your time, Rüdiger - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Replacing HtmlBodyContainer
Ah, you're right :) Here is the check I didn't consider: if (bodyContainer == null) { ... } 2007/4/29, Igor Vaynberg [EMAIL PROTECTED]: well if you look at the code, the way it works is: only do it if it hasnt been done already. so this code only does anything on the first attach, then it becomes a noop. -igor On 4/29/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello Igor, thanks for your help, it was a very close hit :) I actually had to put the code into internalOnttatch like this: protected void internalOnAttach() { super.internalOnAttach(); Component body=get( BodyOnLoadHandler.BODY_ID); if (body!=null) { if (!(body instanceof MyHtmlBodyContainer)) { remove(BodyOnLoadHandler.BODY_ID ); body=null; } } if (body==null) { add(new ...); } } Now I think it works as expected. Now that I know where to look for this - isn't it that now on every attach of the page first a new HtmlBodyContainer is created only to replaced instantly? Is that unnecessary component creation very costly, or shouldn't I worry about this? I'd rather not like to overwrite WebPage.getBodyContainer() by copying 99% of the code and just change the line adding the default HtmlBodyContainer - what I do seems to be enough of a hack already ;) greetings, Rüdiger 2007/4/29, Igor Vaynberg [EMAIL PROTECTED]: you can most likely move that code to page.onattach() and do Component body=get(BodyOnLoadHandler.BODY_ID); if (body!=null) { if (!(body instanceof MyHtmlBodyContainer)) { remove(BodyOnLoadHandler.BODY_ID ); body=null; } } if (body==null) { add(new ...); } -igor On 4/29/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello everybody, I just updated my application from Wicket 1.2.5 to 1.2.6. The update broke one of my pages, which had a rather special requirement: it needed to use my own implementation of HtmlBodyContainer. The way I did it was like this: public EmailPage() { remove(BodyOnLoadHandler.BODY_ID ); add(new MyHtmlBodyContainer(BodyOnLoadHandler.BODY_ID); } see also: http://www.nabble.com/BodyContributor--tf2578291.html#a7187578 With 1.2.6 this does not work anymore. The remove throws the following Exception: Caused by: wicket.WicketRuntimeException: Unable to find a component with id '_body' to remove at wicket.MarkupContainer.remove(MarkupContainer.java:479) Just doing the add without the remove doesn't work either: Caused by: java.lang.IllegalArgumentException: A child with id '_body' already exists: [Page class = de.indyphone.logokits.wicket.ComposerPage, id = 21] at wicket.MarkupContainer.add(MarkupContainer.java:156) at wicket.markup.html.WebPage.getBodyContainer(WebPage.java:211) at wicket.markup.html.WebPage.internalOnAttach (WebPage.java:175) at wicket.Component.internalAttach(Component.java:2572) at wicket.MarkupContainer.internalAttach(MarkupContainer.java:341) So, where's the best location to put the code for replacing the BodyContainer? And will this then still work in 1.3? Thanks for your time, Rüdiger - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download
Re: [Wicket-user] Where to download wicket 2.0 jar builds?
I don't know where to download 2.0 jars, but I can assure that you should think twice about upgrading to 2.0 at the moment. Search the archive for reverting the constructor change and you'll find out that the future of 2.0 in its current state is not so well. 2007/3/26, M.A.Bednarz [EMAIL PROTECTED]: Hello PoJo friends ! Is there a public repository where I can download wicket 2.0 jar instead of source code? I would like to switch at this point my community portal to the 2.0 branch :-) - 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Joost uses Wicket
Hello, the Filter is not in Wicket 1.2.x, only 1.3 and 2.0. ZedroS Schwart schrieb: Hi all On 3/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: it is ok to do that (use /* mapping) if you use WicketFilter instead of WicketServlet I'm sorry but I didn't a WicketFilter class in the API nor in the wicket examples. And the web.xml file from wicket examples seems rather normal to me :$ Could you please be more precise for a Wicket beginner ? 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to getParameters() after using mountBookmarkablePage() ?
Use the constructor WebPage(wicket.PageParameters). There you get all parameters as a map, no matter if the page was mounted or not. Rüdiger smallufo schrieb: Before using mountBookmarkablePage() , parameters are presented as ?var1=avar2=b ... I can get a map of parameters by getRequest().getRequestParameters().getParameters(); After using mountBookmarkablePage() , parameters are translated to spider-friendly style : /var1/a/var2/b and getRequest().getRequestParameters().getParameters() returns empty map How do I solve this problem ? - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best way to deal with non model data
Hello, you could store the confirm password as page property, and provide an matching model just for the PasswordTextField. ZedroS Schwart schrieb: Hi In my register page, I have a PasswordTextField for the confirmation password. For sure, this field isn't stored in my model, and thus I've a mismatch between it and my model object. For sure, I could inherit my User object and then add this confirmPassword field in it and then, onSubmit, create a brand new User and then save it. However, this method implies quite a large amount of work and so I'm wondering whether there is a better way to deal with such issue. What would you suggest ? 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to getParameters() after using mountBookmarkablePage() ?
Hello, you could pass the whole map to your components. But I'd code the components in a way that they don't care where their state is coming from. So you could pass all relevant parameters to the corresponding component constructor, or use some kind of IModel implementation. An example of what you're trying to accomplish would help :) greetings, Rüdiger smallufo schrieb: 2007/3/12, Rüdiger Schulz [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Use the constructor WebPage(wicket.PageParameters). There you get all parameters as a map, no matter if the page was mounted or not. Thank you But compoments seem still cannot direct get parameterMap from getRequest().getRequestParameters().getParameters(); It still returns zero-sized map; Do I need to pass the map from Page to the embedding compoments ? Any way to avoid this ? - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best way to deal with non model data
Martijn Dashorst wrote: You could try this: pw1 = new PasswordTextField(password, new PropertyModel(user, password)); pw2 = new PasswordTextField(confirm, new Model()); form.add(pw1); form.add(pw2); form.add(new EqualPasswordInputValidator(pw1, pw2)); ok, in the specific case of just handling the repeat password, this is surely better :) Rüdiger - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to getParameters() after using mountBookmarkablePage() ?
Hello, ok, I think I understand what you're trying to do. You want to code a bookmarkable link which links to the current page, but with an additional parameter. I think getRequest().getRequestParameters().getParameters() should always return the same, no matter if the page was mounted or not. So this could be a bug, for which you should file a JIRA request. But I'm not very profound in the inner workings of Wicket, so maybe there is a reason for this behaviour. A blind shot for what you could also try: Map parameterMap = ((WebRequest)getRequest).getParameterMap(); But I'm not sure if this will change anything, it's just a guess after looking at the JavaDocs (actually, a quick look at the source rather hints at me that it won't work, but maybe it's worth a try). Greetings, Rüdiger smallufo wrote: 2007/3/12, Rüdiger Schulz [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Hello, you could pass the whole map to your components. Hello , this is what I want to avoid. I have a compoment : 'LanguageBar' , which 'appends' language=Chinese or language=English or...whatever to current ParameterMap is. So I wrote this : (In LanguageBar.java : ) Map parameterMap = getRequest().getRequestParameters().getParameters(); parameters.put(language, language); PageParameters pps = new PageParameters(parameters); after I use mountBookmarkablePage() , I get a zero-sized map. It seems I have to pass the PageParameters from Page to LanguageBar , but it is a little trouble to me , because the LanguageBar may be embedded very deeply. So I have to pass PageParameters from Page to PanelA to PanelB to PanelC to LanguageBar ... and the signatures of PanelA/PanelB/PanelC need to change . Any way to avoid this ? - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in2.0
Hm, that looks good! What would any of the Wicket developers say to that approach? Is there some hidden catch waiting to happen, or this ok? I'm not sure if a behaviour like that should end up in Wicket core (e.g. a method Component#onFirstAttach()), but I think I'll use that in some of my components. ChuckDeal schrieb: I had also hoped that the new Constructor in 2.0 would have been useful. But, I have been using the following solution in 1.2 / 1.3 to overcome not having the parent at Component construction time. Then, all of my Panels extend this Panel instead of the core Panel. It has been working for me for quite some time. Chuck public abstract class InitializablePanel extends Panel { private boolean initialized; /** * Constructor for InitializablePanel * * @param id */ public InitializablePanel(String id) { super(id); commonInit(); } /** * Constructor for InitializablePanel * * @param id * @param model */ public InitializablePanel(String id, IModel model) { super(id, model); commonInit(); } /** * commonInit */ private void commonInit() { initialized = false; } /** * This method will be called by onAttach, therefore subclasses * should override this method to create their components. */ protected abstract void createComponents(); /** * @see wicket.Component#onAttach() */ @Override protected void onAttach() { if (!initialized) { createComponents(); initialized = true; } } Rüdiger Schulz-3 wrote: Same here, having rolled out a 1.2.3 project with no need for updating, and currently in the final stages of a 1.2.5 project, which will eventually update to 1.3 if it comes out. Never did any tests beyond 1.2. Regarding the constructor change: the 1.x way of compiling the hierarchie via add() methods was very natural for me, as I have quite some experience in swing. Specifying the parent in the constructor always seemed odd to me; still I came across some situations where it would have been useful to have it in the constructor. What I once tried was to add all my components in onAttach() but that didn't work of course (subcomponents were added again next request). But some common method in Component where that could be done *after* the constructor would be cool (if that is somehow possible). What I was looking forward to in 2.x were mostly the Java 5 IModels and so on, as I think this would make the code a lot more readable. Well, just my 2 cents here :) Rüdiger Dipu schrieb: We are still using 1.2.1 and 1.2.5 for our production and near production projects. Thanks Dipu - Original Message - From: Eelco Hillenius [EMAIL PROTECTED] To: Wicket User List wicket-user@lists.sourceforge.net Sent: Tuesday, March 06, 2007 10:12 PM Subject: [Wicket-user] IMPORTANT: your opinion on the constructor change in2.0 Hi, We (Wicket's developers) are having some discussion over 1.3 vs 2.0 and how difficult it is as a nun-funded project to spend so much time synchronizing the branches. A major issue in the discussion is that not everyone is convinced anymore that the constructor change in 2.0 is for the better. There are pros and cons for sure, but we want to get your opinion on this. Please help us out giving your opinion. We want to know: 1) Who uses 2.0 for serious projects? 2) What do you think of the constructor change? Do you prefer 1.3's add style or 2.0's style of passing in the parent construction time. 3) If we would ever backtrack on the constructor change (*if*, don't panic for now) how much trouble would that give you? Please don't be shy giving your opinion. This is an important issue in the future development of Wicket. Regards, 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID
Re: [Wicket-user] Reverting the constructor change of 2.0
Hello, as a purse user of Wicket 1.2, I would like to see option c) happen. I'm really looking forward on upgrading my current app to use some of the new features, and to do things more elegantly. Also, I'd like to see Generics support as soon as possible; IModel makes so much more sense with it, and I am sure it will help especially new people coming to Wicket. But most important to me is actually a stable release, for which I'll get bugfixes. That's why I'm still with 1.2. So, as soon as there'll be a 1.3 beta (with a stable around the corner) I'll going to start porting and providing feedback. I did so when switching another app from 1.1 to 1.2 and had a good experience with that (bugs I found in the beta were fixed withing hours - really cool!) So, I hope my opinion helps you in your decision making :) greetings, Rüdiger Eelco Hillenius schrieb: Hi, It looks like the discussion around reverting the constructor change that we did for 2.0 has cooled down. This email is not a vote yet, but a summary of opinions so far[1]. Those of you Wicket committers who didn't have your say yet (Juergen, Frank, Gwyn, Janne, Jan, Ate), I consider that an OK for reverting. If not, please reply to the thread. Juergen, you have been working on 2.0 quite a bit. Can you please state your opinion, and can you tell us whether there are more functional differences between 1.3 and 2.0 other than the constructor change, Java 5 features, the attach/ detach change and improved models and validators?[2] I think so far we can safely say reverting is supported broadly. At least, of the people who reacted, most stated they actually preferred add over the new constructor, and those who were either neutral or had a slight preference for the new constructor would still support reverting as that would keep the momentum for the project going. So, it looks like this may happen. But we'll vote about that in a few days. Before we do that, we have to reach consensus on the package we'll vote on. We have some different - and strong - opinions[3] so we need to find a way to bridge that. Here are what I think the different opinions: a) focus on stabilizing 1.3 first, meanwhile keep supporting 2.0 (though only for bugfixes). 1.4 will be the release with backports of the currently missing 2.0 features, and 1.5 will be 1.4 + the Java 5 features (including generics). b) as a) but rather than developing 1.3 up to a final release, freeze asap (only fix bugs) and start on 1.4 c) put all backports except for the Java 5 features in 1.3 after the beta1 release (which we agreed upon doing this weekend). 1.4 will be for the Java 5 features, and the branch should be started as soon as 1.3 is feature complete. Maybe the most constructive way to gather opinions here is to first let people plainly state what they prefer before we enter discussion mode. So, please state what package you think is the best idea (or introduce d if you want), and why. Cheers, Eelco [1] http://www.nabble.com/IMPORTANT%3A-your-opinion-on-the-constructor-change-in-2.0-tf3358738.html#a9350505 http://www.nabble.com/Re%3A-IMPORTANT%3A-your-opinion-on-the-constructor-tf3359229.html#a9344068 [2] http://www.nabble.com/State-1.3--features-tf3376983.html [3] http://www.nabble.com/VOTE%3A-backporting-wicket-2.0-model-change-to-1.3-tf3364601.html http://www.nabble.com/roadmap-tf3366743.html - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in2.0
Same here, having rolled out a 1.2.3 project with no need for updating, and currently in the final stages of a 1.2.5 project, which will eventually update to 1.3 if it comes out. Never did any tests beyond 1.2. Regarding the constructor change: the 1.x way of compiling the hierarchie via add() methods was very natural for me, as I have quite some experience in swing. Specifying the parent in the constructor always seemed odd to me; still I came across some situations where it would have been useful to have it in the constructor. What I once tried was to add all my components in onAttach() but that didn't work of course (subcomponents were added again next request). But some common method in Component where that could be done *after* the constructor would be cool (if that is somehow possible). What I was looking forward to in 2.x were mostly the Java 5 IModels and so on, as I think this would make the code a lot more readable. Well, just my 2 cents here :) Rüdiger Dipu schrieb: We are still using 1.2.1 and 1.2.5 for our production and near production projects. Thanks Dipu - Original Message - From: Eelco Hillenius [EMAIL PROTECTED] To: Wicket User List wicket-user@lists.sourceforge.net Sent: Tuesday, March 06, 2007 10:12 PM Subject: [Wicket-user] IMPORTANT: your opinion on the constructor change in2.0 Hi, We (Wicket's developers) are having some discussion over 1.3 vs 2.0 and how difficult it is as a nun-funded project to spend so much time synchronizing the branches. A major issue in the discussion is that not everyone is convinced anymore that the constructor change in 2.0 is for the better. There are pros and cons for sure, but we want to get your opinion on this. Please help us out giving your opinion. We want to know: 1) Who uses 2.0 for serious projects? 2) What do you think of the constructor change? Do you prefer 1.3's add style or 2.0's style of passing in the parent construction time. 3) If we would ever backtrack on the constructor change (*if*, don't panic for now) how much trouble would that give you? Please don't be shy giving your opinion. This is an important issue in the future development of Wicket. Regards, 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Access to WebRequest during Session creation
Hello all, is it possible to access the current WebRequest during Session creation (or attach() )? The usual way via RequestCycle.get() is not working, as the RequestCycle is not yet initialized at that time. I'm using Wicket 1.2.5, and I want to read a Cookie, which I need to init my session objects. Thanks, Rüdiger - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Access to WebRequest during Session creation
Thanks. I'm really looking forward to the first releases of the new versions :) Martijn Dashorst schrieb: No, not in 1.2.x. This would mean an API break. Wicket 1.3 and 2.0 have this default: http://svn.apache.org/repos/asf/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Session.java Martijn On 3/5/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello all, is it possible to access the current WebRequest during Session creation (or attach() )? The usual way via RequestCycle.get() is not working, as the RequestCycle is not yet initialized at that time. I'm using Wicket 1.2.5, and I want to read a Cookie, which I need to init my session objects. Thanks, Rüdiger - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket-user Digest, Vol 9, Issue 223
ketan gote schrieb: how can i handle runtimeexception or UnexpectedException in wicket and define user define page or override the wicket UnexpectedException page e.g. in your Application.init(): getApplicationSettings().setInternalErrorPage(MyErrorPage.class); greetings, Rüdiger - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] PasswordTextField.setResetPassword
Johan Compagner schrieb: please make a jira issue Here it is: https://issues.apache.org/jira/browse/WICKET-322 hmm, thought I selected minor priority, but oh well. greetings, Rüdiger - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] PasswordTextField.setResetPassword
Hello everybody, Using Wicket 1.2.5, I have a sign-up form with a password field like this: PasswordTextField passwordField = new PasswordTextField(password); passwordField.setRequired(true); passwordField.add(StringValidator.lengthBetween(5, 32)); I observe a rather odd behavior: 1) enter 5 characters, submit. Other fields in the form have errors, so the form is redisplayed. 2) delete a character, submit. Error is displayed, but the value of the field is what I entered in step 1. This is especially irritating if you do the form validation via Ajax after onblur, so it would be nice if this could be changed somehow. I already asked a similar question last April, but I'm not sure what the final decision has been on this: http://www.nabble.com/PasswordTextField.setResetPassword-tf1399513.html#a3764720 If desired, I could also post a JIRA on this. thanks, Rüdiger - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] VOTE on wicket:component
Jonathan Locke schrieb: [X] Delete this unimportant and generally unsupported feature [ ] Keep wicket:component, but define its limits, document it on the wiki as fully supported and commit to supporting it in the future and a +1 for wicket:pseudo / wicket:container as well ;) Greetings, Rüdiger - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem restarting application in Tomcat
Hello, I had the same error with 1.2.4. I just updated to 1.2.5, and the error message changed to: WicketMessage: Markup of type 'html' for component 'de.indyphone.logokits.wicket.LogoKitOverviewPage' not found. Enable debug messages for wicket.util.resource to get a list of all filenames tried: [Page class = de.indyphone.logokits.wicket.LogoKitOverviewPage, id = 11] Root cause: wicket.markup.MarkupNotFoundException: Markup not found. Component class: de.indyphone.logokits.wicket.LogoKitOverviewPage Enable debug messages for wicket.util.resource to get a list of all filenames tried at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:117) at wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827) at wicket.Page.onRender(Page.java:854) at wicket.Component.render(Component.java:1526) at wicket.Page.renderPage(Page.java:413) So I enabled debug messages for wicket.util.resource, and it seems to look for the standard filenames (lots of output, I don't know if its helpful?) Also, for pages getting some of their markup from properties files, I get the following error after redeploy: java.util.MissingResourceException: Unable to find resource: code for component: registerForm:codeLabel at wicket.Localizer.getString(Localizer.java:262) at wicket.Localizer.getString(Localizer.java:181) at wicket.model.ResourceModel.getObject(ResourceModel.java:69) at wicket.Component.getModelObject(Component.java:983) at wicket.Component.getModelObjectAsString(Component.java:998) at wicket.markup.html.form.SimpleFormComponentLabel.onComponentTagBody(SimpleFormComponentLabel.java:59) at wicket.Component.renderComponent(Component.java:1712) This always happens after running my ant script which undeploys the webapp via manager, copies over the new warfile and then deploys via the manager. The context is configured to be using the war directly, so it is not unpacked in the webapps directory. Simply restarting tomcat solves this, but doing this with every redploy is a little tedious :( And I just changed from Jboss to Tomcat because I hoped I could speed up development... Other environment: JDK1.5, Spring, Hibernate, Tomcat 5.5.20 Igor Vaynberg schrieb: looks like the npe was hiding the real exception, i just checked in a change that should fix that. update from svn wicket-1.2.x branch and deploy that, then look for the exception in the log and let us know what it is. -igor - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem restarting application in Tomcat
Igor Vaynberg schrieb: On 2/12/07, *Rüdiger Schulz* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Simply restarting tomcat solves this, but doing this with every redploy is a little tedious :( And I just changed from Jboss to Tomcat because I hoped I could speed up development... OT but if you want real speedy development try using embedded jetty - that way you dont need to redeploy at all, use hotswap and when that fails restart jetty which only takes a few secs. see StartExamples class in wicket-examples yeah, that's probably right, and I use a quickstart to test out single components or concepts from time to time. But I don't have much experience with Jetty, and I use JNDI datasource and javamail session from Tomcat, and have an Apache beforehand, which serves some static resources as well. So I think that a move to Jetty will not be done that fast... greetings, Rüdiger - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Associating markup
Ah, I've been waiting for a FormComponentPanel! I tried myself at one some weeks ago, but failed horribly :( I hope I'll find the time to check this out soon, but at the moment I'm still developing for 1.2.x. I have at least one component in my current project that literally screams for a superclass like that. Palette from wicket-extensions also comes to mind at once. Rüdiger Eelco Hillenius schrieb: This http://issues.apache.org/jira/browse/WICKET-136 is probably closer to what you are looking for. I use it myself, and it works great. It's a simple addition to core, but I'd like to wait putting it in there without introducing a lot of copy 'n paste code. And I'd prefer Juergen to look at that, as he wrote most of the markup association code. Eelco On 12/11/06, Matthijs Wensveen [EMAIL PROTECTED] wrote: Hi, I'm trying to create a generic Form component with its own markup. I was under the impression that this would be possible using the wicket:component tag. An example: MyPage.html htmlbody And here is the form: form wicket:id=myForm design mode html /form /body/html MyPage.java //.. leave out uninteresting stuff until constructor public MyPage() { add(new MyForm(myForm)); } MyForm.html htmlbody wicket:component h1wicket:id=formTitleh1 input type=submit value=submit /wicket:component /body/html MyForm.java class MyForm extends Form { public MyForm() { add(new Label(formTitle, The Form)); } } This does not seem to work however. What am I doing wrong? Thanks in advance, -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Prevent Brute Force and the like
Hello Johannes, that's a good topic you've got here... I agree to Korbinian that locking out IPs is a bad idea. One could extend that to the combination of username/IP, but that could be worked around with a more sofisticated script. What do you think about logging false logins on a per-user basis, and delay the response after the first false attempt by a couple of seconds until another valid login for that user happened? I think the Linux shell login works like that. Or, one could lock an account completely after say three false attempts, and send an email to the user with a link to unlock it again. .rue Johannes Fahrenkrug schrieb: Hi! I'd like to prevent brute force attacks on the login page of my wicket application. What would be the best approach? This is what I'm thinking about doing: Record when the last request for the loginpage from a certain IP came in and only handle the request when at least a second or two have passed. This would have to be done application wide because when an attacker uses a tool like cURL a new session is created with each request. So what would you guys suggest? - Johannes - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Set required to false on button press
Hello everbody, I have a nice working form with multiple FormComponents. Now our client wants to have a preview button, where you can save a record without entering all normally required data. So I'm asking where to call setRequired(false) for all the form components? The form should be submitted after that just like with the other button, so that the data can be saved in the database. Thanks for your attention :) -- greetings from Berlin, Rüdiger Schulz - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Jboss: IOException while loading persisted sessions
Hello Johan yeah, this is really strange. The stacktrace of the exception also doesn't have any wicket classes or any of my own in it. But I just see that my custom WebSession implements IRequestCycleFactory - and I don't know why ;) This is still my first wicket application, so this might be something from the beginning and error prone? -- greetings from Berlin, Rüdiger Schulz Johan Compagner wrote on 19.07.2006 at 14:51: What i find strange is that a requestcycle is stored in the session. That shouldn't happen you only have a request cycle during a request then it is discarded. Can you see what does have a reference to it? johan On 7/19/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello everbody, Sometimes after a redploy of my wicket application, I get the following error message: 13:41:02,250 ERROR [ManagerBase] IOException while loading persisted sessions: java.io.InvalidClassException: de.skygate.revisionsdb.web.base.RevisionsRequestCycle; no valid constructor java.io.InvalidClassException: de.skygate.revisionsdb.web.base.RevisionsRequestCycle; no valid constructor I simply overwrote the default constructor from WebRequestCycle, so I think this error message is a little strange. But I have a Hibernate Session stored in the RequestCycle object, which is not transient. Could that be the problem? Declaring it transient would be no problem I think, as I have a lazily-generating accessor anyway. -- greetings from Berlin, Rüdiger Schulz - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Jboss: IOException while loading persisted sessions
Hello everbody, Sometimes after a redploy of my wicket application, I get the following error message: 13:41:02,250 ERROR [ManagerBase] IOException while loading persisted sessions: java.io.InvalidClassException: de.skygate.revisionsdb.web.base.RevisionsRequestCycle; no valid constructor java.io.InvalidClassException: de.skygate.revisionsdb.web.base.RevisionsRequestCycle; no valid constructor I simply overwrote the default constructor from WebRequestCycle, so I think this error message is a little strange. But I have a Hibernate Session stored in the RequestCycle object, which is not transient. Could that be the problem? Declaring it transient would be no problem I think, as I have a lazily-generating accessor anyway. -- greetings from Berlin, Rüdiger Schulz - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Select doesn't remember selection and other issues
Hello everybody, I have a problem with wicket.extensions.markup.html.form.select.Select. If a form containing such a dropdown is submitted with errors, the selection is not remembered. I have attached a simple demonstration showing that, which can be put into QuickStart directly. The textfield is required. If you keep it empty, and select e.g. Option 3, Option 1 will be selected again after the submit. If you submit the form successfully, Option 3 is selected. If you leave the textfield empty again, and select Option 2, Option 3 will be the one to show up. I can't say for sure if this is a bug, but it seems like that to me. Coming that far was hard enough, so if this could be worked out, I'd be glad to put a usage example in the Wiki (the JavaDocs lack a usage example). A thing that bothers me with adding options that way, is that there needs to be a span inside the optgroup, because if I put the wicket:id into the optgroup, it will not show up in the HTML (just its children). Having to put a option wicket:id=option/option inside of it was a bit weird to me at the beginning, but this is not a problem, if it were mentioned in the docs somewhere :) Another problem I still have is with understanding model chaining. In the example you can also see a (commented out) Label, which should display the current value of the dropDown property of the model bean. I thought this could be done with a chained PropertyModel. But the value for the Label still seems to be taken via the id of the Component, and not via the expression provided with PropertyModel. What would be the correct way to do this, other than changing the id of the Label? -- It's a Blog now: http://www.2rue.de cid:part1.08070709.01040700@skygate.de Title: QuickStart QuickStart package wicket.quickstart; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import wicket.PageParameters; import wicket.extensions.markup.html.form.select.IOptionRenderer; import wicket.extensions.markup.html.form.select.Select; import wicket.extensions.markup.html.form.select.SelectOptions; import wicket.markup.html.basic.Label; import wicket.markup.html.form.Form; import wicket.markup.html.form.TextField; import wicket.markup.html.panel.FeedbackPanel; import wicket.model.CompoundPropertyModel; import wicket.model.IModel; import wicket.model.Model; import wicket.model.PropertyModel; /** * Basic bookmarkable index page. * * NOTE: You can get session properties from QuickStartSession via getQuickStartSession() */ public class Index extends QuickStartPage { /** * Very simple IOptionRenderer. */ private static final IOptionRenderer OPTION_RENDERER = new IOptionRenderer() { public String getDisplayValue(Object object) { return String.valueOf(object); } public IModel getModel(Object value) { return new Model((Serializable) value); } }; /** * Some values for the dropdown */ private static List dropDownValues = new ArrayList(); static { dropDownValues.add(Option 1); dropDownValues.add(Option 2); dropDownValues.add(Option 3); } /** * Constructor that is invoked when page is invoked without a session. * * @param parameters Page parameters */ public Index(final PageParameters parameters) { // create the model bean, and manage access through CompoundPropertyModel ModelBean bean = new ModelBean(); IModel model = new CompoundPropertyModel(bean); Form form = new Form(testForm, model); // display form errors form.add(new FeedbackPanel(feedback)); // Dropdown with a single optgroup Select dropDown = new Select(dropDown); dropDown.add(new SelectOptions(optGroup1, dropDownValues, OPTION_RENDERER)); form.add(dropDown); // textfield to show wrong behaviour through form errors form.add(new TextField(textField).setRequired(true)); add(form); // Doesn't work // WicketMessage: No get method defined for // class: class wicket.quickstart.Index$ModelBean // expression: debugLabel // Label l = new Label(debugLabel, new PropertyModel(model, dropDown)); // add(l); } /** * Simple model bean for storing form input. */ public class ModelBean { private String dropDown; private String textField; /** * Get the dropDown. *
Re: [Wicket-user] Select doesn't remember selection and other issues
Hello, thanks for your very fast patch! That shows again where OSS beats commercial software :-) I tried the latest SVN snapshot with my little example, and the behaviour is now as expected. I still have to try my full app, but I'll probably just wait for 1.2.1 here (still in development). I'd be glad to provide some docs etc. for this subject in the next days. What would be the best way for providing JavaDoc-Patches? Just changing the latest file from SVN, and posting it here? Is there maybe a way to avoid this additional span inside optgroup and just use the optgroup which then of course should not vanish? The span will always be marked as invalid HTML in editors... I played with setRenderBodyOnly(), but that didn't change anything no matter what. Sure, there won't be always the relation 1 SelectOptions - 1 optgroup, but still... ;-) Also, thanks a lot for your explanation regarding model chaining. I think I understand the problem now. I'm not yet sure how to go around this everywhere, but I will now try to avoid Compound models where a deeper chaining might be necessary. Maybe I'll manage to come up with an example where I stumbled upon this where it was not possible to just use the model bean, as there was just a (compound) model available. greetings from Berlin, Rüdiger Schulz Igor Vaynberg schrieb: On 6/26/06, *Rüdiger Schulz* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello everybody, I have a problem with wicket.extensions.markup.html.form.select.Select. If a form containing such a dropdown is submitted with errors, the selection is not remembered. I have attached a simple demonstration showing that, which can be put into QuickStart directly. The textfield is required. If you keep it empty, and select e.g. Option 3, Option 1 will be selected again after the submit. If you submit the form successfully, Option 3 is selected. If you leave the textfield empty again, and select Option 2, Option 3 will be the one to show up. I can't say for sure if this is a bug, but it seems like that to me. yep, this was a bug. just fixed it in subversion, do you mind testing it? Coming that far was hard enough, so if this could be worked out, I'd be glad to put a usage example in the Wiki (the JavaDocs lack a usage example). a patch to javadoc would also be welcome, there is actually a todo in the javadoc to provide a usage example :) A thing that bothers me with adding options that way, is that there needs to be a span inside the optgroup, because if I put the wicket:id into the optgroup, it will not show up in the HTML (just its children). Having to put a option wicket:id=option/option inside of it was a bit weird to me at the beginning, but this is not a problem, if it were mentioned in the docs somewhere :) yeah, SelectOptions is a quicky way to do it and it needs the span that is not rendered. once again, a patch to javadoc is more then welcome :) Another problem I still have is with understanding model chaining. In the example you can also see a (commented out) Label, which should display the current value of the dropDown property of the model bean. I thought this could be done with a chained PropertyModel. But the value for the Label still seems to be taken via the id of the Component, and not via the expression provided with PropertyModel. What would be the correct way to do this, other than changing the id of the Label? well, lets see what you are doing... ModelBean bean = new ModelBean(); IModel model = new CompoundPropertyModel(bean); Label l = new Label(debugLabel, new PropertyModel(model, dropDown)); so you are creating propertymodel with an object which is a model when propertymodel's getobject is called it first checks if the object it is passed on is a model or just an object. if it is an object it performs property resolution, but if it is a model it first calls getobject on it because it would make little sense to do property resolution on an instance of IModel. so this is where the problem is: getObject is called on model object you declrared, which is compound; so it in turn tries to resolve a property on the bean with the component's id, thus you get the No get meothod defined for modelBean, expression: debugLevel because the compound model's getObject tries to return modelBean.getDebugLevel which is the id of the label. hope this clears things up, if you want to fix it pass in the bean object itself instead of the compound model. -Igor Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd
Re: [Wicket-user] Is Wicket ok for DDA web applications?
Hello, a question regarding that PageMap-JavaScript: What will happen if a browser has JS disabled? Will it still be possible to reach every page and all? Another thing to avoid is the SubmitLink, as it will JavaScript as well. Coming to think about it - are there other Components which _require_ JavaScript to work? Maybe we should start a list on the wiki... DDA compliance becomes definitly more and more important, especially in the public sector. -- greetings from Berlin, Rüdiger Schulz John Patterson wrote on 22.06.2006 at 17:51: Fascinating. I had never heard of DDA compliance before but a little Googling makes me realise that I should really take notice. Especially the part about sites like Priceline.com being successfully sued over their accessibility. http://www.webcredible.co.uk/user-friendly-resources/web- accessibility/uk-website-legal-requirements.shtml Regards your question: wicket does by default use some Javascript to detect new windows for its PageMap implementation. But this is not essential user interface script and I can't see how it could stop a site being accessed correctly. All other JavaScript and AJAX is completely optional. You have complete control over the mark-up that is returned (unlike JSF) so you can use CSS and basic HTML if you want and be completely compliant. John. On 22 Jun 2006, at 10:47, Andrew Bate wrote: Hi, I'm considering looking at Wicket after a painful two weeks on JSF (actually Apache MyFaces) and thinking there has to be a better way...!. Most of my work over the last 5 years has been JSP/ Struts etc... I'm a J2EE developer but coming firmly from the web side rather than a back-end developmer. I want to use a framework that has clean markup and is intuitive for people with web skills. (Anyone who has seen the ghastly JSF tabular layouts and poor Tomahawk div implementation will understand!) I am about to start work on a webapp where one of the requirements is for a DDA compliant interface. If I were to use Wicket, does it have any reliance on Javascript or anything else that may jeopardise a DDA interface? Thanks, Andrew Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Options Transfer Component?
Hello Andreas take a look at the Palette component if this is what you expect. -- greetings from Berlin, Rüdiger Schulz [EMAIL PROTECTED] wrote on 07.06.2006 at 14:41: Hi, I'm new to Wicket and I need to create an Options Transfer Widget. It consists of two select boxes with options and arrow buttons to move the options from one box into the other one. Example: http://www.mattkruse.com/javascript/optiontransfer/ How can this be done in Wicket? I tried to use ListMultipleChoice, but this does not work because a ListMultipleChoice cannot grow, i.e. cope with new options that have not been not in the choices list. When I insert a new option into a ListMultipleChoice at runtime via Javascript, there is appearantly no way to access this new option after submitting the form because Wicket does not find it in the choices. Is there any other way to build an Options Transfer than to build the Component from scratch? Thanks, Andreas -- Andreas Reimer T-Systems GEI GmbH EAI Solutions Hausanschrift: Pascalstrasse 8, D-52076 Aachen Postanschrift: Postfach 500155, D-52085 Aachen Telefon: +49 (2408) 943-1375 Telefax: +49 (2408) 943-1722 mailto: [EMAIL PROTECTED] ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Checking Out from wicket stuff
Hello Ayodeji you need to connect to https://svn.sourceforge.net/svnroot/wicket-stuff. And you will need a subversion-plugin for Eclipse, like subclipse: http://subclipse.tigris.org/install.html Funnily, I blogged about getting wicket-stuff from sourceforge just yesterday. It's in german, but maybe you will still find some of the screenshots or URLs useful http://www.2rue.de/hacking/howto-wicket-stuff-mit-eclipse-und-subversion-bei-sourceforge-downloaden/ -- greetings from Berlin, Rüdiger Schulz Ayodeji Aladejebi wrote on 05.06.2006 at 18:28: Please i have been having No route to host error using eclipse to check out from Subversion, formally i use :pserver:[EMAIL PROTECTED]:/cvsroot/wicket-stuff to access the CVS but i see wicket has moved to subversion, what is the string to connect please What is the host and what is the repo path? thanks ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] another dumb model question....
Enhanced JavaDoc for IModel would be very useful. When I started with Wicket, this took quite some time for me to grasp. After that, a lot of problems I had where suddenly easy to solve :) -- greetings from Berlin, Rüdiger Schulz Matej Knopp wrote on 01.06.2006 at 18:46: Plus those methods are redundant. It would just clutter the interface. The contract is well defined. Maybe javadoc of get/setModelObject should be improved a little and state explicitly what the argument is and how it is used? -Matej Igor Vaynberg wrote: and what should that paremeterless override pass in to the getObject(Component c)? null? that will work, but will break down if you have a compound model - and more often then not you do. so i dont know if this is such a good thing -Igor On 6/1/06, *Aaron Hiniker* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: +1 On Wed, 2006-05-31 at 20:47 -0600, VGJ wrote: I might just be nit-picking here...but it might be nice to have a parameter-less override of getObjectjust for prettiness ;) It might be more intuitive for the first-time user as well? It would be more apparent, IMO, if you could just call model.getObject() Just a thought... On Wed, 2006-05-31 at 22:35 +0200, Matej Knopp wrote: :) Yeah, getObject is a little confusing at the beginning. The parameter is mostly used in compound models (CompoundPropertyModel) where the model is shared between multiple components to determine which component is setting/getting the value. -Matej Vincent Jenks wrote: Excellent, that's perfect. The part I was unsure about was what to pass for the arguement for getObject() Thanks Matej! On 5/31/06, Matej Knopp [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Suppose you have IModel model = new LoadableDetachableModel() { ... you can get the model any time: ListItem myItems = (ListItem) model.getObject(null). First time you call getObject the model is attached (list is loaded). Until it's detached, getObject(null) will always return the loaded list. -Matej Vincent Jenks wrote: If I were just displaying the lists in a ListView that'd be fine, however I'm not using it that way. Suppose myDetachedModel is being displayed in a ListView and on each iteration, I'm grabbing a value from the database (here's where I need another detachable model) and doing calculations against it - for each iteration in the ListView loop. In other words, I just need access to the raw object data in it's real data-type after I've loaded it into a detachable model - my question is simply that, how do I get it back to its original type. On 5/31/06, Matej Knopp [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm not sure I understand you but you load the collections separately? Can't you just do something like this? class MyPage extends Page { public MyPage() { IModel m1 = new LoadableDetachableModel() { Object load() { return [load collection 1]; } } add(new ListView(l1, m1) { ... }); IModel m2 = new LoadableDetachableModel() { Object load() { return [load collection 2]; } } add(new ListView(l2, m2) { ... }); } } Matej Vincent Jenks wrote: I've got a page where I need to call data from the EntityManger (EJB3) several times in a single pagewhich means I'd need to have several detached-models in the page. Once I put these objects and/or collections of objects into a detachable model, what's the best way to cast them back out to their original types? It seems like a silly question but I'm having trouble w/ it. If I only had one detached model I realize I could use setModel(...) and grab it w/ getModelObject() - but I've got 3-4 collections and they can't all be the page model, can they? Thanks! --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ Wicket
Re: [Wicket-user] CSS Styling For Wicket Components
Hello Ayodeji I don't think that something exactly like that is already implemented. But you can put a style reference or declaration for just your Component into the wicket:head Part of the markup to achieve the effect. -- greetings from Berlin, Rüdiger Schulz Ayodeji Aladejebi wrote on 30.05.2006 at 12:24: Hi, About Wicket and CSS, Well maybe its even already part of wicket and I am not aware but please if its that i am not aware, educate me. Thanks Now Basically when one creates a component in wicket like for example a Panel. I will create two files basically MyPanel.java MyPanel.html Now somewhere within the MyPanel.html , i can have: div wicket:id=Component1 a wicket:id=LinkComponent1/a /div and from wicket naming convention, i realized that Markup Ids are generated like this Component1_LinkComponent1 which refrences the a tag Now, lets say I need to style the a tag What is the possibility of having the third file like: MyPanel.css which will contain as sample: #Component1_LinkComponent1 { color: #FF; } Now please this is not a Must-be-present-at-the-moment feature i am just asking if something like this exists or is planned thanks --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid7521bid$8729dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink
Hello Igor not sure how iframes behave here, but it is possible to call javascript functions in one frame, which is defined in another frame, which then again can do anything with the calling frame. Done this a couple of years ago (when frames where still en vogue ;), but as it turned out, nothing like that will be necessary to solve our problem here :-) -- greetings from Berlin, Rüdiger Schulz Igor Vaynberg wrote on 04.05.2006 at 19:28: i guess there can be a hidden iframe, but then the loaded js will not be part of the page because frames are isolated, no? -Igor On 5/4/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: in that case i dont see how you can ever make this work in xhtml unless you refresh the entire page. A twisted solution using an invisible frame loading only JS comes to mind ;-) - Rüdiger --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnk kid0709 bid 3057 dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink
right, and that is the main problem to solve. is a script tag legal in the middle of html? because maybe we can capture the head output and just insert it into html script Tags in the middle of HTML are working in all browsers I ever had to use this. I'm not 100% sure if it's legal, but I think the main reason for putting JavaScript in the head is, that it is definitly loaded before any markup is using it. -Igor On 5/4/06, Bruno Borges [EMAIL PROTECTED] wrote: Igor, I'm not sure if browsers support the update head thing (probably not), but one first step solution is to notify the component that it is been added through Ajax, so the component must generate a load function and return that function name to the Ajax call, so the Ajax JS can call that function postprocessing. Of course, the main problem still continues: how to add the .js file of DatePicker/anything else, to the html page dynamically. On 5/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote: yes, there is a problem indeed with components that need head contribution and are added via ajax. the problem is that when the component is added via ajax its header contribution is ingored because the head section is not updated. so in case of the datepicker the js it needs is never added to the page. im not really sure what the good solution for this is. maybe we can update the head, but do browsers take that into account? will a script tag added to head via outerhtml replacement be processed by the browser? can you even use outer/innerHtml on elements in the head region of the page? any thoughts/ideas are welcome. -igor On 5/3/06, Bruno Borges [EMAIL PROTECTED] wrote: Oh, one mistake in the code I sent. - The id for newUserLink I'm using is newUser; Everything works: AjaxLink replacing the div, the panel, submit, etc. Only the datePicker JS isn't working! Regards, On 5/4/06, Bruno Borges [EMAIL PROTECTED] wrote: I'm trying to load a Form Panel's child, and this panel is been loaded through an AjaxLink. The DatePicker icon doesn't work. The calendar doesn't shows up. Is there any incompatibility between loading panels with Ajax and DatePicker within? My code looks like this: class Index extends WebPage { constructor { final Label welcome = new Label(bodyPanel, Welcome); add(welcome); AjaxLink goHome = new AjaxLink(home) { ... { getPage().replace(welcome); target.addComponent(welcome); } }; AjaxLink newUserLink = AjaxLink(home) { ... { UserFormPanel panel = new UserFormPanel(bodyPanel); getPage().replace(panel); target.addComponent(panel); } }; add(newUserLink); add(goHome); } } class UserFormPanel extends Panel { constructor { add(new UserForm(userForm)); } } class UserForm extends Form { constructor { ... // other basic fields like 'username', 'email', 'password' // Date field fieldBirthday RequiredTextField fieldBirthday = new RequiredTextField(birthday, Date.class); fieldBirthday .add(DateValidator.maximum(Calendar.getInstance().getTime())); add(fieldBirthday); // DatePicker for fieldBirthday DatePickerSettings settings = new DatePickerSettings(); settings.setIfFormat(%d/%m/%Y); settings.setWeekNumbers(false); DatePicker datePicker = new DatePicker(datePicker, fieldBirthday , settings); add(datePicker); } } I can say for sure: the datepicker component was working perfectly before opening the panel through AjaxLink (actually, UserFormPanel was UserFormPage before this). Am I missing something here? Regards, -- Bruno Borges [EMAIL PROTECTED] Sun Certified Java Programmer for 1.4 Sun Certified Web Component Developer for 1.4 -- Bruno Borges [EMAIL PROTECTED] Sun Certified Java Programmer for 1.4 Sun Certified Web Component Developer for 1.4 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink
in that case i dont see how you can ever make this work in xhtml unless you refresh the entire page. A twisted solution using an invisible frame loading only JS comes to mind ;-) - Rüdiger --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Mailing list archive was: Generating HTML with Wicket?
Ashley Aitken wrote on 03.05.2006 at 07:50: it is hard to follow threads via the archive You're probably using the archive at SF. Take a look at nabble's, I found that to be way better regarding searching and following threads: http://www.nabble.com/Wicket---User-f13976.html -- greetings from Berlin, Rüdiger Schulz --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Passing model to panel
Hello fellow Wicket users, I have a general question regarding models and using them with forms and custom panels. In my example I have a form with a CompoundPropertyModel and several standard TextFields etc., each one therefore being mapped to a Property of the Bean passed to the CPM. So far so good :) Now I want to create Form Panels, meaning a Panel with one or more FormComponents, which are then mapped together to a single property. In this case it is a TextField and a corresponding DatePicker. I'd like to put this in a Panel, so that I can reuse it easily on several forms, and also being mapped to different Beans and Properties. So, without the Panel this is no problem; I just set the ID of the TextField to the name of the property, and the mapping is done via the CPM. But this is not possible when I put this in a Panel, since in the HTML for the Panel, the id must always be the same. So, what needs to be done in the panel, that the TextField is always mapped to the right Property of the enclosing form? Should I just set the Model of the field to the one of the Panel? And to make this more general: How do I do this for a Panel with say two TextFields, whose contents should be concatenated and put into a single property, again via using a form with a CPM. I'd like to have it work like this in the form: add(new MyFormPanel(propertyName)); Is this possible? Any hints are welcome :-) I have already read the Wiki-articles on Models (http://www.wicket-wiki.org.uk/wiki/index.php/Using_Models and http://www.wicket-wiki.org.uk/wiki/index.php/Models), but couldn't find this out. I think I'm just a small step away - I already found out about Model chaining, but got this to work only with a Panel being mapped to a Property, which is iteself a Bean, and not a Date or String as in my case :( -- greetings from Berlin, Rüdiger Schulz --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Passing model to panel
Hello Johan, yes, I'd like to make a generic Panel, which Model is updated (somehow) by a combination or some other computation of the Models of its included FormComponents. So the Panel shall map on a single property, but consists of several sub-components. I see that Palette from extensions does something like that, but I don't really see through the way it is done there (updateModel() of the Recorder calls updateModel() of the Palette, which itself seems to change to modelObject). To clarify this a little, some code snippets (at least there's no language barrier ;): class MyPanel extends Panel { public MyPanel(String id) { super(id); add(new TextField()); add(new TextField()); } } I'd like this Panel behave in such a way, that when I enter foo in the first field and bar in the second: myPanel().getModelObjectAsString() == foobar Where should I process the concatenation to update the panel model correctly? Because _then_ I could use MyPanel in a form with a CPM, and the form wouldn't have to care about anything happening inside the Panel. I hope this is a little clearer now :-) -- greetings from Berlin, Rüdiger Schulz Johan Compagner wrote on 03.05.2006 at 13:49: what does the panel have to do with the property in a CPM? It is the things that are in the panel that want to use the CPM that needs the right properties. But are you saying you want to make a somwhat generic FormPanel with textfields that must map on specific properties on a random CPM? You could use the BoundedCPM for this and bind the textfields in the panel to the right dataprovider. johan On 5/3/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello fellow Wicket users, I have a general question regarding models and using them with forms and custom panels. In my example I have a form with a CompoundPropertyModel and several standard TextFields etc., each one therefore being mapped to a Property of the Bean passed to the CPM. So far so good :) Now I want to create Form Panels, meaning a Panel with one or more FormComponents, which are then mapped together to a single property. In this case it is a TextField and a corresponding DatePicker. I'd like to put this in a Panel, so that I can reuse it easily on several forms, and also being mapped to different Beans and Properties. So, without the Panel this is no problem; I just set the ID of the TextField to the name of the property, and the mapping is done via the CPM. But this is not possible when I put this in a Panel, since in the HTML for the Panel, the id must always be the same. So, what needs to be done in the panel, that the TextField is always mapped to the right Property of the enclosing form? Should I just set the Model of the field to the one of the Panel? And to make this more general: How do I do this for a Panel with say two TextFields, whose contents should be concatenated and put into a single property, again via using a form with a CPM. I'd like to have it work like this in the form: add(new MyFormPanel(propertyName)); Is this possible? Any hints are welcome :-) I have already read the Wiki-articles on Models (http://www.wicket-wiki.org.uk/wiki/index.php/Using_Models and http://www.wicket-wiki.org.uk/wiki/index.php/Models), but couldn't find this out. I think I'm just a small step away - I already found out about Model chaining, but got this to work only with a Panel being mapped to a Property, which is iteself a Bean, and not a Date or String as in my case :( -- greetings from Berlin, Rüdiger Schulz --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnk kid0709 bid 3057 dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.2-rc3 released
I can confirm this exact same erro on Jboss 3.2.5. -- greetings from Berlin, Rüdiger Schulz Maciej Janusz wrote on 02.05.2006 at 17:17: JC you have to use the CryptedUrlWebRequestCodingStrategy for that now. JC I think we need to add those 2 classes back in and make the depricated. thanks I'll try. JC where do you see that serialization exception? JC http://wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.ClockPage JC seems to work fine On my machine (jboss-4.0.4RC1) with examples 1.2-rc3 ( http://localhost:8080/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.ClockPage )I get -- begin of stacktrace WicketMessage: Internal error cloning object. Make sure all dependent objects implement Serializable. Class: wicket.examples.ajax.builtin.ClockPage Root cause: java.io.NotSerializableException: java.lang.ref.WeakReference at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291) at java.util.ArrayList.writeObject(ArrayList.java:570) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291) at wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:56) at wicket.Session.setAttribute(Session.java:878) at wicket.PageMap.put(PageMap.java:519) at wicket.Session.touch(Session.java:684) at wicket.Page.renderPage(Page.java:418) at wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:224) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:879) at wicket.RequestCycle.step(RequestCycle.java:960) at wicket.RequestCycle.steps(RequestCycle.java:1034) at wicket.RequestCycle.request(RequestCycle.java:453) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174) at org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:95) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
Re: [Wicket-user] Default application.properties added to wicket
Hello Johan, attached is a german application.properties file. I spotted and corrected two little typos in the file I got with rc3 :) Also, I changed the sentences for StringValidator.minimum and StringValidator.maximum, so that they have similar wording to StringValidator.range. -- greetings from Berlin, Rüdiger Schulz Johan Compagner wrote on 08.04.2006 at 23:51: hi, I have added wicket.Application.properties and wicket.Application_nl.properties, they will be loaded now as the last resort if nothing is found for the given key. All Validatior keys of wicket are in it. Also the null and nullValid keys of the SingleSelectChoice are in there. (Choose One) Because of this we needed a differentiation between the keys if null is valid or not. null (Choose One) is still the same but the emtpy one is now the key 'nullValid' this was a bit wrong to start with because if you switched from null allowed to not allowed you still would have the same option value.. We need now as many properties file for the different locales as possible. johan Application_de.properties Description: Binary data
Re: [Wicket-user] images sizes
Hello Alexander, you might want to try Marco Schmidt's ImageInfo class, which not only gets you the image dimensions, but other information like file format etc., also without loading or rendering the whole image. http://schmidt.devlib.org/image-info/index.html -- greetings from Berlin, Rüdiger Schulz Alexander Lohse wrote on 25.04.2006 at 20:56: Hi, I know this is slightly off-topic, but I wonder if anyone ever solved this: I have a gallery application that takes a directory and reads out all the images.(Actually I use two directories, one for thumbnails and one for the hires version). I use PopupSettings to open a new window with the appropriate size for the hires image. As I am coming from PHP I am used to a very quick function-call to find the size of an image. In Java I have to read the whole image into memory, which takes very long in terms of request-time. I tried Jimi/ImageIO and even Swing-ImageIcon. e.g. BufferedImage image = null; try { image = ImageIO.read(new File(localHiresPath.toString ())); } catch (IOException exc) { } if (image != null) { ImageModel model = new ImageModel(); model.setHeight(image.getHeight()); model.setWidth(image.getWidth()); } Is there any better/fast way to achive this? Maybe some nice wicket functionality? Thank you for any help. Alex --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] button as a link with additional onClick
Hello Igor, thanks for your reply! But super.getOnClickScript() just returns null. Looking at Link's code, I found out that the onClick code is created in method onComponentTag(), and simply replaced by getOnClickScript() if that doesn't return null. But I found a solution: protected CharSequence getOnClickScript(CharSequence url) { StringBuffer buf = new StringBuffer(); buf.append(if (!window.confirm('Are you sure?')) return false;); buf.append(location.href='); buf.append(url); buf.append(';); return buf.toString(); } The tricky part of generating the url is done already, and passed as an argument. I already wondered before what url that might be, but it turns out its just what I needed :) -- greetings from Berlin, Rüdiger Schulz Igor Vaynberg wrote on 25.04.2006 at 20:00: protected String getOnClickScript() { String wicketScript=super.getOnClickScript(); return if (!alert('blah')) return false; +wicketScript; } -Igor On 4/25/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello all, I want to use a button which is specified by a Link in java. This works fine, my onClik() method of the link is executed. Now I want to prepend a onClick-JavaScript, asking for confirmation via window.confirm(), and not executing the Wicket generated Javascript if cancel is clicked. My problem is, I don't get my JavaScript prepended. When I override getOnClickScript(), the Wicket-generated JS is discarded. When I use an (Simple)AttributeModifier or AttributeAppender, my JavaScript is put into another onClick attribute of the button tag, and it never gets executed. Is there a way to put my custom script before the Wicket script? Or should I simply look for another solution (like an image link or sth like that)? -- greetings from Berlin, Rüdiger Schulz --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnk kid0709 bid 3057 dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] button as a link with additional onClick
Hello Johan thanks! Now I understand why some methods where changed from String to CharSequence :) -- greetings from Berlin, Rüdiger Schulz Johan Compagner wrote on 26.04.2006 at 12:07: just a quick tip don't call toString() on the buffer. Just return the buffer itself. johan On 4/26/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello Igor, thanks for your reply! But super.getOnClickScript() just returns null. Looking at Link's code, I found out that the onClick code is created in method onComponentTag(), and simply replaced by getOnClickScript() if that doesn't return null. But I found a solution: protected CharSequence getOnClickScript(CharSequence url) { StringBuffer buf = new StringBuffer(); buf.append(if (!window.confirm('Are you sure?')) return false;); buf.append(location.href='); buf.append(url); buf.append(';); return buf.toString(); } The tricky part of generating the url is done already, and passed as an argument. I already wondered before what url that might be, but it turns out its just what I needed :) -- greetings from Berlin, Rüdiger Schulz Igor Vaynberg wrote on 25.04.2006 at 20:00: protected String getOnClickScript() { String wicketScript=super.getOnClickScript(); return if (!alert('blah')) return false; +wicketScript; } -Igor On 4/25/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello all, I want to use a button which is specified by a Link in java. This works fine, my onClik() method of the link is executed. Now I want to prepend a onClick-JavaScript, asking for confirmation via window.confirm(), and not executing the Wicket generated Javascript if cancel is clicked. My problem is, I don't get my JavaScript prepended. When I override getOnClickScript(), the Wicket-generated JS is discarded. When I use an (Simple)AttributeModifier or AttributeAppender, my JavaScript is put into another onClick attribute of the button tag, and it never gets executed. Is there a way to put my custom script before the Wicket script? Or should I simply look for another solution (like an image link or sth like that)? -- greetings from Berlin, Rüdiger Schulz --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnk kid0709 bid 3057 dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnk kid0709 bid 3057 dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Bug: Message from EmailAddressPatternValidator not displayed correctly
Hello Eelco since I couldn't find a bug report in sourceforge regarding this, I registered there and filed it myself. http://sourceforge.net/tracker/index.php?func=detailaid=1476824group_id=119783atid=684975 I hope we don't have a duplicate there now ;) -- greetings from Berlin, Rüdiger Schulz Eelco Hillenius wrote on 20.04.2006 at 20:31: It's always a good idea to file bug reports on the sourceforge site, so that we don't forget about them, and everyone else can track whether they are fixed or not. Sourceforge seems to be down now, but I'll add a report later. Eelco On 4/20/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Still incorrect in rc2... Ingram Chen wrote on 20.04.2006 at 15:50: Is this being fixed ? This is still incorrect in rc2. On 4/20/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Juergen Donnerstag wrote on 19.04.2006 at 18:05: Where does the a come from? this is what I entered in the textfield. -- greetings from Berlin, Rüdiger Schulz Juergen On 4/19/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello list, in a form I have a TextField for an email, simply like this: final TextField email = new TextField(email); email.add(EmailAddressPatternValidator.getInstance()); add(email); In the properties for the enclosing page, I defined a message for invalid emails: editForm.email.EmailAddressPatternValidator This worked well before upgrading from 1.1.1 to 1.2rc1. Other messages in this properties file for other form components still do. Now I get the message 'a' does not match pattern '[EMAIL PROTECTED]'. I'd say several thing go wrong here: * My custom message gets ignored. * Instead of the default message for EmailAddressPatternValidator, the one for PatternValidator is displayed. * The message for PatternValidator does not display the pattern itself, but its class and adress. Another thing is, although I set another Locale in my application's init(), the english default error is displayed (and I see a german file in the wicket jar). I set the Locale like this: getApplicationSettings().setDefaultLocale(Locale.GERMAN); (I also tried Locale.GERMANY) -- greetings from Berlin, Rüdiger Schulz --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnk kid0709 bid 3057 dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnk kid0709 bid 3057 dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnk kid0709 bid 3057 dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- greetings from Berlin, Rüdiger Schulz --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Hard setting of Locale
Hello list, is it somehow possible to not only set a default Locale for an application, but sort of hard-wire one, that isn't overridden by Browser settings? I'm using an english Firefox for development, and (so far) didn't change the web page language settings. Now I'm getting the english default error messages from the validators. Sure, normally this is a great feature, but as this web application is in german, and there are no plans for additional languages, english error messages are never going to be useful anyway. Setting the default Locale doesn't (and shouldn't) help, as the browser _does_ request a different locale. (in a previous post I thought this to be a bug, but I now know why Wicket behaves that way :) -- greetings from Berlin, Rüdiger Schulz --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hard setting of Locale
thanks, that worked great :) Always learning more of the API... -- greetings from Berlin, Rüdiger Schulz Eelco Hillenius wrote on 26.04.2006 at 14:41: Easiest thing is probably to override Session.getLocale in a custom Session implementation. super.getLocale will give you the locale that was set based on the request that created the session in case you need to take that into consideration. Eelco On 4/26/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello list, is it somehow possible to not only set a default Locale for an application, but sort of hard-wire one, that isn't overridden by Browser settings? I'm using an english Firefox for development, and (so far) didn't change the web page language settings. Now I'm getting the english default error messages from the validators. Sure, normally this is a great feature, but as this web application is in german, and there are no plans for additional languages, english error messages are never going to be useful anyway. Setting the default Locale doesn't (and shouldn't) help, as the browser _does_ request a different locale. (in a previous post I thought this to be a bug, but I now know why Wicket behaves that way :) -- greetings from Berlin, Rüdiger Schulz --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Bug: Message from EmailAddressPatternValidator not displayed correctly
Still incorrect in rc2... Ingram Chen wrote on 20.04.2006 at 15:50: Is this being fixed ? This is still incorrect in rc2. On 4/20/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Juergen Donnerstag wrote on 19.04.2006 at 18:05: Where does the a come from? this is what I entered in the textfield. -- greetings from Berlin, Rüdiger Schulz Juergen On 4/19/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello list, in a form I have a TextField for an email, simply like this: final TextField email = new TextField(email); email.add(EmailAddressPatternValidator.getInstance()); add(email); In the properties for the enclosing page, I defined a message for invalid emails: editForm.email.EmailAddressPatternValidator This worked well before upgrading from 1.1.1 to 1.2rc1. Other messages in this properties file for other form components still do. Now I get the message 'a' does not match pattern '[EMAIL PROTECTED]'. I'd say several thing go wrong here: * My custom message gets ignored. * Instead of the default message for EmailAddressPatternValidator, the one for PatternValidator is displayed. * The message for PatternValidator does not display the pattern itself, but its class and adress. Another thing is, although I set another Locale in my application's init(), the english default error is displayed (and I see a german file in the wicket jar). I set the Locale like this: getApplicationSettings().setDefaultLocale(Locale.GERMAN); (I also tried Locale.GERMANY) -- greetings from Berlin, Rüdiger Schulz --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnk kid0709 bid 3057 dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnk kid0709 bid 3057 dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnk kid0709 bid 3057 dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- greetings from Berlin, Rüdiger Schulz --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Encrytption of password data
ok, great! I think I can wait for the next RC, as this app is still in development, and I can remove (and later re-add) those = in the database manually for now. -- greetings from Berlin, Rüdiger Schulz Martijn Dashorst wrote on 19.04.2006 at 00:29: In the next RC this problem will be fixed, and you'll get the = back in the string. If you need it earlier, you can check out wicket trunk and build your own wicket version. Martijn On 4/18/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello list, for a Wicket-application requiring a signed-in user I use PasswordTextField.getModelObject() for acquiring the entered data. Going the easy way, I simply stored this in the database, as it was already encrypted, and comparison during login is also very easy to do. Now I upgraded from wicket 1.1.1 to 1.2rc1. This method still works, but something has changed. Before, all passwords had a '=' as their last character, which they now lack. Apart from that, the encryption seems to produce the same encrypted strings out of the source strings. If this is not a bug, it should be stated in the migration guide somewhere... -- greetings from Berlin, Rüdiger Schulz --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnk kid0944 bid$1720 dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Encrytption of password data
Johan Compagner wrote on 19.04.2006 at 12:11: it is not just the = we use a different base64 set where + and / are - and _ so that urls can handle them. http://www.faqs.org/rfcs/rfc3548.html The best thing to do is convert to SHA one way encryption for passwords. You're probably right with that, and pre-Wicket I did always use SHA or MD5 for storing passwords in databases. I didn't really look very hard why I got an encrypted password from getModelValue(), I just thought great, no need for me to do this by myself and used it :) So, for anyone not knowing how to get a SHA hash out of a string, here's a little function doing just that: /** * Encrypt a string using SHA one-way algorithm. * @param s the string to be encrypted. * @return the encrypted string as a 40 character hex string * @throws NoSuchAlgorithmException if no implementation of SHA is available */ public static String getSHAHash(String s) throws NoSuchAlgorithmException { MessageDigest messagedigest = MessageDigest.getInstance(SHA); messagedigest.update(s.getBytes()); byte[] hash = messagedigest.digest(); // hexstring conversion copied from com.Ostermiller.util.MD5#toHex(byte hash[]) (GNU licensed) StringBuffer buf = new StringBuffer(hash.length * 2); for (int i=0; ihash.length; i++){ int intVal = hash[i] 0xff; if (intVal 0x10){ // append a zero before a one digit hex number to make it two digits. buf.append(0); } buf.append(Integer.toHexString(intVal)); } return buf.toString(); } The exception should really only be thrown if your JDK has no SHA included. AFAIK, the ones from Sun have it since JDK 1.2. Maybe this could be incorporated somewhere in Wicket, as storing SHA encrypted passwords is so common in web applications... -- greetings from Berlin, Rüdiger Schulz On 4/19/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: ok, great! I think I can wait for the next RC, as this app is still in development, and I can remove (and later re-add) those = in the database manually for now. -- greetings from Berlin, Rüdiger Schulz Martijn Dashorst wrote on 19.04.2006 at 00:29: In the next RC this problem will be fixed, and you'll get the = back in the string. If you need it earlier, you can check out wicket trunk and build your own wicket version. Martijn On 4/18/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello list, for a Wicket-application requiring a signed-in user I use PasswordTextField.getModelObject() for acquiring the entered data. Going the easy way, I simply stored this in the database, as it was already encrypted, and comparison during login is also very easy to do. Now I upgraded from wicket 1.1.1 to 1.2rc1. This method still works, but something has changed. Before, all passwords had a '=' as their last character, which they now lack. Apart from that, the encryption seems to produce the same encrypted strings out of the source strings. If this is not a bug, it should be stated in the migration guide somewhere... -- greetings from Berlin, Rüdiger Schulz --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnk kid0944 bid$1720 dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnk kid0944 bid$1720 dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Bug: Message from EmailAddressPatternValidator not displayed correctly
Hello list, in a form I have a TextField for an email, simply like this: final TextField email = new TextField(email); email.add(EmailAddressPatternValidator.getInstance()); add(email); In the properties for the enclosing page, I defined a message for invalid emails: editForm.email.EmailAddressPatternValidator This worked well before upgrading from 1.1.1 to 1.2rc1. Other messages in this properties file for other form components still do. Now I get the message 'a' does not match pattern '[EMAIL PROTECTED]'. I'd say several thing go wrong here: * My custom message gets ignored. * Instead of the default message for EmailAddressPatternValidator, the one for PatternValidator is displayed. * The message for PatternValidator does not display the pattern itself, but its class and adress. Another thing is, although I set another Locale in my application's init(), the english default error is displayed (and I see a german file in the wicket jar). I set the Locale like this: getApplicationSettings().setDefaultLocale(Locale.GERMAN); (I also tried Locale.GERMANY) -- greetings from Berlin, Rüdiger Schulz --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Suggestion for PageParameters
Hey, I have a suggestion for PageParameters. All those nice methods getInt(), getBoolean() etc. should not throw an Exception, at least if a default value is provided. I mean, that's the purpose of default values, isn't it ;) Currently I'm helping myself with letting org.apache.commons.lang.math.NumberUtils do the conversion. I see that these convinient methods are all defined in ValueMap, where the situation might be different (i.e. Exceptions should not be prevented). -- greetings from Berlin, Rüdiger Schulz --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Encrytption of password data
Hello list, for a Wicket-application requiring a signed-in user I use PasswordTextField.getModelObject() for acquiring the entered data. Going the easy way, I simply stored this in the database, as it was already encrypted, and comparison during login is also very easy to do. Now I upgraded from wicket 1.1.1 to 1.2rc1. This method still works, but something has changed. Before, all passwords had a '=' as their last character, which they now lack. Apart from that, the encryption seems to produce the same encrypted strings out of the source strings. If this is not a bug, it should be stated in the migration guide somewhere... -- greetings from Berlin, Rüdiger Schulz --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Setting column-widths in DataTable
MailingWicketUser wrote on 13.04.2006 at 11:42: Is there an elegant way to set the column widths when using a DataTable (from wicket-extensions)? As this is a matter of design, I anticipate a solution where I can set the widths in HTML or CSS. Something like the following would be nice: Without trying it, just looking at the source of DataTable, I'm confident that you can define your widths just like that :) table wicket:id=table colgroup col width=100 / col width=100 / /colgroup /table But I'm just a beginning wicket user as well, so maybe your colgroup tags are just ignored in the rendered ouput. Then you'd have to use CSS as Juergen mentioned, or make a subclass of DataTable and provide your own HTML for it. -- greetings from Berlin, Rüdiger Schulz --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] contrib vs extensions
ok, thanks for pointing that out :) happy eastern to all, Rüdiger Juergen Donnerstag wrote on 13.04.2006 at 15:23: Extensions are part of the Wicket project and maintained by Wickets core developers. Contrib projects are part of wicket-stuff which has much relaxed contribution rules and contrib projects are usually not maintained by core developers. The Wicket team does not feel responsible for the content of the contrib projects. And they are not 1.2 specifc or whatever. Having said that, some features find there way from contrib to extension or core and on the way while more users are using it, it gets modified and situations like yours arise. I know, it doesn't solve your problem, but may be explains the situation a bit. Juergen -- greetings from Berlin, Rüdiger Schulz --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] PasswordTextField.setResetPassword
Hello list, I have a form with a PasswordTextField. If one of the validators of the other fields creates an error, the content of the password field is cleared, as oppossed to all the other fields, which keep their entered values. resetPassword is set to false, but the only effect from this is, that the password is kept *only* if the form was submitted without an error from a validator. Is there a way around this? I'd like the password field to keep its value even if the form has errors elsewhere... I'm using Wicket 1.1.1, and already found a similar thread in the list archive from last November, but there was no help there either :( thanks, -- greetings from Berlin, Rüdiger Schulz --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Tags building the component tree
Hello list, I'm just starting to use Wicket 1.1, and stumbled upon an issue with the component tree. Say I have a Form fooForm and a TextField barText, which is wrapped in a FormComponentFeedbackBorder barFeedback. The tree therefore is like this: fooForm:barFeedback:barText I'd like to do HTML like this: form wicket:id=fooForm p wicket:id=barFeedback input type=text wicket:id=barText / /p /form If I run the page, I get a MarkupException: Unable to find component with id 'barText'. But if I replace the p tag with a div tag, this works fine, which seems rather strange to me. Does it really matter in what tags i put the wicket:id? And if so, why is there no error regarding the barFeedback in the first place? Is there a list of valid tags for building the component tree in the HTML? -- greetings from Berlin, Rüdiger Schulz --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tags building the component tree
Justin Lee wrote on 29.03.2006 at 18:12: form wicket:id=fooForm p wicket:id=barFeedback/p input type=text wicket:id=barText / /form Sorry, this doesn't work either :( Wouldn't that be a component tree like that: fooForm:barFeedback fooForm:barText ? Still wondering why my example works with div but not with p... Rüdiger Schulz wrote: Hello list, I'm just starting to use Wicket 1.1, and stumbled upon an issue with the component tree. Say I have a Form fooForm and a TextField barText, which is wrapped in a FormComponentFeedbackBorder barFeedback. The tree therefore is like this: fooForm:barFeedback:barText I'd like to do HTML like this: form wicket:id=fooForm p wicket:id=barFeedback input type=text wicket:id=barText / /p /form If I run the page, I get a MarkupException: Unable to find component with id 'barText'. But if I replace the p tag with a div tag, this works fine, which seems rather strange to me. Does it really matter in what tags i put the wicket:id? And if so, why is there no error regarding the barFeedback in the first place? Is there a list of valid tags for building the component tree in the HTML? -- greetings from Berlin, Rüdiger Schulz --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user