When you say you are saving the value through and AJAX call can you be a little more specific? Is your AJAX call targeting custom code you have written or the standard Sling POST servlet? Dialog submits are AJAX calls as well, have you tried comparing the dialog submit POST request with your AJAX request to see if there are any differences?