Yes, this is possible if you use the jQuery validation plugin found here:
http://docs.jquery.com/Plugins/ValidationIf you can figure out how to make a required field in a regular form using the plugin, you should be able to do the same thing inside a dialog.
I am developing an app that does just this, but is isn't viewable from internet just yet.
If you don't figure this out soon, I will eventually have the app available and you can view the source to see how this works.
Send me a PM around 1st/2nd week of July for public URL, as it should be up by then.