2008年8月23日 星期六

Use DatePicker in Wicket 1.3/1.4

In Wicket 1.3/1.4, DatePicker is replaced by an YUI implementation. Add wicket-datetime-1.4-m3.jar and you can find DatePicker class. However, if you just add wicket-datetime-1.4-m3.jar, you'll get tihs exception:


......
Root cause:

java.lang.ClassNotFoundException: org.joda.time.ReadWritableInstant
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
......


In order to fix this, just add joda-time-1.4.jar in your classpath :)

2008年8月10日 星期日

Eclipse: Unable to open internal browser...

I got this error when I tried to preview an HTML page in Eclipse 3.3 today, but it worked before... Anyway, after googled for a while, I found all I need is to install libstdc++5:

sudo aptitude install libstdc++5

And it works again!

P.S. I use Ubuntu 8.04 + MyEclipse 6.0.1.