On 10/12/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > Don't forget anonymous validators will carry a reference to the page (or > whatever the outside class is) so they will be huge when serialized. >
yes, that is a problem > The way I see it: adding an Imodel to the formcomponent is cheaper then a > hashmap or a minimap or whatever and it is 100% general use case so it > should def be part of the framework. Building that context might be way > overkill. I'm not convinced yetI still don't like formComponent.getLabel() very much for the reasons mentioned. > > 2) can already be done by providing your own IValidatorResourceKeyFactory - How did you do it? IValidatorResourceKeyFactory is application static and thus can not vary from validator to validator. I think what is required is a 2-step approach. First try the default key created by apps.getValidatorResourceKeyFactory.getKey and if not found try key = Classes.name(validator.getClass().getName()) Juergen ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
