The problem looks as if it is in the DOM, I'm wondering if this isn't jquery's fault?
All of the field names in the form.elements are somehow mangled. "artNumber" instead of "partNumber" On Fri, Apr 30, 2010 at 6:14 PM, Ozu Natsu <ozu.na...@gmail.com> wrote: > Dale, > > So close! I am now to the point where I am getting the errors, but > when I try to use the struts utilities to display them, I am getting > an undefined object in the struts validation.js function > addErrorXHTML(e, errorText) ; > > My code looks like this: > > complete : function(XMLHttpRequest, textStatus){ > var form= $('#update')[0]; > //clear previous validation errors, if any > StrutsUtils.clearValidationErrors(form); > > //get errors from response > var text = XMLHttpRequest.responseText; > var errorsObject = StrutsUtils.getValidationErrors(text); > > //show errors, if any > if(errorsObject.fieldErrors) { > StrutsUtils.showValidationErrors(form, errorsObject); > } > } > > > On Fri, Apr 30, 2010 at 5:55 PM, Dale Newfield <d...@newfield.org> wrote: >> On 4/30/10 6:50 PM, Ozu Natsu wrote: >>> >>> Anyone have any ideas? >> >> Debugging from the client side: Firebug in Firefox. >> Debugging from the server side: log messages (log4j or other). >> >> -Dale >> > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org