We will have to wait and see. JP has Smith's and kallis's backing. Smith also now has a vote on the squad so there is a pretty good chance that they will stick with jp like they did with ab and kallis when they had similiar issues. Another factor that helps jp is that he is a decent second spinner.
Disagree with JP not being able to become a great test batsman, you don't average 50 in first class cricket if you can't play. To put it in perspective only other guy to do that in SA domestic cricket is kallis. Yes the kid has issues but those can and should be solved.