The farmer is entitled to his religious beliefs, but if he's selling goods or services in the public marketplace, he may NOT choose to refuse his goods/services based on race, religion, national origin, or sexual orientation.  That is the law.  If he wishes to place his religious beliefs before the law he needs to get out of business.