Because there are 2 elements (input and span) using the same id (here ${status.expression}) the javascript function setInputFieldStatus will not work, because its 2nd line will fail, as document.getElementById(id) will return an array instead of a single element.
Anyway, nice explanation of basics of wiring up Spring and DWR. |