i don't think you read the code correctly, either.
each component is only validated once:
public void validate(final FormComponent component)
{
left.validate(component);
right.validate(component);
}
Jonathan Locke wrote:
time versus space tradeoff. chaining together like this keeps session
size down, which
matters much more than execution of validation, which is a fairly rare
event. it's a list.
the ordering is not undefined.
Phil Kulak wrote:
Don't get me wrong, I apreaciate the effort that when into
reimplementing java.util.LinkedList, but I've got to ask... why? It
seems to me like it adds about 100 more lines to the code, calls
validate on each validator O(n^2) times where n is the size of the
list, and makes the ordering of the validators undefined (or just in
reverse, I can't really tell from a cursory glance).
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing
& QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing
& QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop