Are you asking which Ajax framework is the best for you? I'll throw out the classic computer science answer: it depends. I will say that the odds of you needing to roll your own solution are small - there are dozens of great frameworks out there.
Pro Ajax and Java Frameworks discusses:
DojoPrototypeDWRTaconitescriptaculousAjaxTagsYou may also want to investigate GWT and the Yahoo UI library.
At the end of the day it depends a lot on what you want out of the framework...