Andrew Lombardi wrote:
Erik,Excellent! This is exactly what I need. By the way, I think a component like this should also be part of wicket extensions. There is no need for a one-size-fits all date component and in practice you encounter many different types of date choosers. The advantage of the dropdown version over the _javascript_ version in my opinion is that you can use the keyboard and that it doesn't give you a popup and force a user to use the mouse. An experienced user should be able to use the interface with the keyboard only I think. I have just read your blog. I will try it out tomorrow. Or use the validation support of the FormComponent. I had also looked around a bit and discovered that the problem was that Panel doesn't extend FormComponent. Because of this I was a bit reluctant about writing a component myself because I don't know the APIs for rendering HTML. But I really like your solution. You solved it by implementing the custom component, adding three nested components to it, and then you provide a custom Panel for generating the HTML markup. This is surely an interesting pattern that I would want to use as well. Cheers Erik
|
------------------------------------------------------------------------- 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=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user