Matt Raible ([EMAIL PROTECTED]) wrote:

> I previously had the confirmPassword field in the UserFormEx.java - the reason
> I moved it to User.java is documented in the release notes for 0.8. ;-)
> 
> http://tinyurl.com/e5td
> 
> - Moved "confirmPassword" property from UserFormEx.java to User.java so 
>   JavaScript validations would occur in the proper order.
> 
> When it was in UserFormEx.java - the confirmPassword validation would get
> called before password, which seemed silly to me.  This was an easy fix.  A
> better solution is to add to XDoclet and possibly add an attribute (i.e.
> "order") that allows validation attributes to be specified, rather than
> calculated based on the order they appear in the source.
> 
> HTH,
> 
> Matt

Interesting, so xdoclet does check the *Ex.java files as well when
creating the validation rules for the forms it seems.  I see your
point, hmmm....order could get complicated, maybe a "weight" would
be better, more like z-index.  I guess it is worth proposing.  I
will try a few things and see if I come up with it.  Assuming that
the order is correct, do you agree that it would be best to put the
confirmPassword in the ActionForm?

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <[EMAIL PROTECTED]>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
It is not enough to succeed.  Others must fail.  
 -- Gore Vidal
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Struts-apps mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/struts-apps

Reply via email to