Bind the enabled property (and maybe it's style class too if you want it to flash) to whatever tells you there's an issue.
enabled