There's a great article here about shifter, cassette and derailleur compatability. Basically provides all the information you need to know about mixing and matching derailleur types, cassettes and shifters.
There is also another excellent article on drivetrain compatability here