Boa tarde, tente converter as datas para o formato "normal" da forma abaixo, fica mais facil para fazer o calculo, depois é so por no HTML do campo o onblur com o calculo(onblur="DifData();"):
<script type="text/javascript">
Function DifData() {
var x = document.getElementById("data_1").value;
var y = document.getElementById("data_2").value;
var DifDT = "";
var date1 = new Date(parseInt(x.substr(6, 4)),parseInt(x.substr(3, 2)) - 1, parseInt(x.substr(0, 2)));
var date2 = new Date(parseInt(y.substr(6, 4)),parseInt(y.substr(3, 2)) - 1, parseInt(y.substr(0, 2)));
DifDT = date2 - date1;
alert(DifDT);
}
</script>
Como o validateForm é um evento de formulário, ocorrendo no backend, acredito que usar as classe Java fica mais confiável (java.util.Date, java.text.SimpleDateFormat, java.time.format.DateTimeFormatter, etc).