Check the archives for the note I wrote on 6/15 with subject "Some confusion trying to do ajax form submit". Musachy gave me some very useful info (read all his responses).
> -----Original Message----- > From: Sarr, Nathan [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2008 11:16 AM > To: Struts Users Mailing List > Subject: RE: [OT] What slows you down? > > Hi David, > > That sounds great - thanks for tip. I'm going to grab the > Beta release ASAP. > > -Nate > > -----Original Message----- > From: Karr, David [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2008 1:47 PM > To: Struts Users Mailing List > Subject: RE: [OT] What slows you down? > > > -----Original Message----- > > From: Sarr, Nathan [mailto:[EMAIL PROTECTED] > > Sent: Friday, June 20, 2008 10:29 AM > > To: Struts Users Mailing List > > Subject: RE: [OT] What slows you down? > > > > 2. Validation - since I'm using Yahoo User Interface Libraries > > (YUI) and my actions are returning JSON or HTML fragments returning > > INPUT didn't really work out so I removed validation in > favor of doing > > it in the ActionSupport class. > > I'm not sure if there is much struts can do about this one. > > Note that in the upcoming 2.1.x release you can use the > "jsonValidationWorkflowStack" and automatically get action > errors directly in your JSON results, using the validation > framework out of the box. There's even a very small > JavaScript module that integrates with what's expected to be > there using the Struts tags, so you can do your submit and > display of errors entirely with the Ajax request. You could > then use the exact same form and do a regular non-Ajax submit > and do the exact same validations (if you wanted to). > > I verified this with a simple test case, using YUI 2.5.2 and > Struts2 2.1.2. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]