Another gotcha is it you don't have javascript at the client. I have suggest using javascript at the server (rhino is a good version) to run the same validations at the server.