The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Ajax Form Validation Using Spring and DWR
Subject:  An error in the example
Date:  2007-10-29 13:45:57
From:  shpak


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.

 Feed java.net RSS Feeds