Acting Prime Minister Ehud Olmert has said Israel will have no contacts with the Palestinians as long as Hamas is involved in terrorism and refuses to recognize Israel .