Ajax issue in jsf - data lost without saving

If there more then 4 Ajaxrefreshrequests on a given page, and then the user opts to save such data, the page refreshes without saving the data.
This is because of the com.sun.faces.numberOfViewsInSession exceeds and a new view is created...which can loose some of the data on the page

Solution to this problem :

In web.xml add this entry