-Igor
On 3/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I really like your refactorings on the validation stuff.
One additional request:
Thanks to Johan's addition I now get the following error message for my component 'bar' with a missing resource:
>java.util.MissingResourceException: Unable to find resource:
> BazValidator for component: sub:form:foo
If we changed FormComponent#error(List,Map) so that localizer#getString() is called with 'this' instead of getParent(), we would get the following message:
>java.util.MissingResourceException: Unable to find resource:
> CustomerValidator for component: sub:form:foo:bar
It should do no harm to extend the component stack by one component, but we'll get a more precise error message.
Thanks
Sven
>
>i dont think it works like that.
>
>the localizer searches up the component hierarchy, RequiredValidator is >not in it so the validators have to explicitly ask localizer for both >keys: formcompid.validator-key and validator-key. i dont think localizer >knows enough to do it for us.
>
>-Igor
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user