1. Modal.js defines Class instead of Wicket.Class. Modal.js tries to define new Wicket classes via Class instead of Wicket.Class.xxx.
2. Object.extend conflicts with mootools, so I created a new Wicket class Wicket.Object with an extend method.
Here is the patch against wicket-extensions trunk. This works perfectly with mootools-trunk