I recommand you before decide to use ajax, do study about JSF that is very lofty and robust to such as projects, and use best technology to create IOC in View Layer like in Model Layer.