Mark Derricutt's Disturbing Thoughts

Simple Time Tracker redux

posted Sunday, 27 July 2008
Since originally writing my Simple Time Tracking application I've been meaning to migrate the project away from version 2.0 of the wicket framework (which was ultimately scrapped) to the current 1.4 milestone releases and publically release the code. On a cold and wet evening I spent a few hours pulling the code out of storage and updating it, as it's been ages since I've used wicket I thought it'd also be good to document what changes I'm making.
  • Change imports from wicket.* to org.apache.wicket.*
  • Replace ISessionFactory getSessionFactory() with Session newSession() on the Application class.
  • Revert component constructor changes - Wicket 2.0 took the parent in the constructor where as 1.4 uses the original scheme.
  • Add generics to Model instances.
Outside of changing the imports and constructors used in the project there was little to change really - to me this is a huge win in Wickets' favour (I don't think Tapestry users can say such a thing), however I did run into one problem with generic models. The Model interface expects its generic argument to extend Serializable which is quite understandable - however it did mean I had to change my API to start using ArrayList instead of List, a minor inconvenience but one I can live with for now.

For some reason the screen cast above only plays in Safari for me and not in Firefox, hopefully it works for other people.

I should have the initial code-drop up on google code or somewhere else in the next few days after a few more regression bugs have been sorted.

Technorati Tags:

tags:    

links: digg this    del.icio.us    technorati    reddit




1. Lars Fischer left...
Monday, 28 July 2008 8:15 pm :: http://serpensalbus.com

Safari doesn't work for me either...


2. Mark Derricutt left...
Monday, 28 July 2008 9:21 pm

Strange.. it works for me on my linux box, stupid computers.