20040927 Monday September 27, 2004

WebWork's Validation and SpringObjectFactory For the last couple of nights, I've been wresting with WebWork's validation framework and trying to get it's client-side stuff to work with AppFuse. After much frustration, I finally figured it was caused by the SpringObjectFactory class. By using this patch, I was able to get regular client-side validation to work, but not the VisitorFieldValidator - which is what I'm using for almost all validations.

Since I've been done with the WebWork integration into AppFuse for a few days now, I think it's time to cut my losses and start working on other stuff for the 1.6 release. Hopefully someone will figure this out someday, but in the meantime, the server-side validation should satisfy most requirements.

In other words: there will be no client-side validation for WebWork in AppFuse 1.6.

Update: After playing a bit more tonight, I almost added client-side validation by specifying the validation rules per-action rather than per-POJO. Then I discovered that the client-side validation has no way to cancel its invocation. With Commons Validation, you can add an onclick handler to a submit button (onclick="bCancel=true") to cancel client-side validation. Posted in Java at Sep 27 2004, 06:09:31 PM MDT 2 Comments

Comments:

It's been a while since I updated the SpringObjectFactory, so when I get a chance I'll see if this can be fixed.

Posted by Simon Stewart on September 28, 2004 at 01:35 AM MDT #

Please please please create Jira's for the stuff you want to see and we'll get there... The client side stuff is new and works for the common cases, but SpringObjectFactory + VisitorValidation is a complex one :-)

Posted by Jason Carreira on September 28, 2004 at 12:13 PM MDT #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
« December 2008
SunMonTueWedThuFriSat
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   
       
Today

Recent Entries

Tag Cloud