Washington (CNN)President Barack Obama said the news that House Speaker John Boehner is resigning from Congress was a "surprise," and he called him "a patriot."
Barack Obama: House Speaker John Boehner 'a patriot'
Obama said he got a chance to speak with Boehner directly about his decision before a joint press conference with Chinese President Xi Jinping, who is at the White House for a state visit.
He told reporters gathered at that press conference that Boehner is an admirable man.
"I just heard the news as I was coming out of the meeting here so it took me by surprise, and I took the time prior to this press conference to call John directly," Obama said. "John Boehner is a good man -- he is a patriot, he cares deeply about the House, an institution for which he has served for a long time, he cares about his constituency and he cares about America."
The two leaders have found themselves on opposite sides of a number of fights during Obama's administration and Boehner's tenure, but Obama said despite the political disagreements, Boehner always conducted himself with "courtesy" and "civility."
"He has kept his word when he has made a commitment to me, he is somebody who has been gracious and, I think, maybe most importantly, that he is somebody who understands that in government, in governance, you don't get 100% of what you want, but you have to work with people who you disagree with, sometimes strongly, in order to do the people's business."
Obama said he would not get into who might replace Boehner, but would reach out as soon as that person is named.
Boehner announced Friday he would be resigning in a move that surprised nearly everyone. He told reporters that he only made the decision Friday morning, though he had been prepared to announce he would resign at the end of the year.
The Ohio Republican cited leadership "turmoil" -- a reference to the conservative wing of his party that had been fighting his leadership and challenging his speakership.
Obama said he hopes that the next speaker will try to work across the aisle.
"The one thing I will say is that my hope is there's a recognition on the part of the next speaker -- something i think that John understood, but at times it was challenging to bring his caucus along -- that we can have significant differences on issues but that doesn't mean you shut down the government. ... There's no weakness is that. you don't get what you want 100% of the time."