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 <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]