Alright, then could someone take a look at my problem with GridPanel? Here's the issue: I need to create a panel for each type of form input so that it can toggle between the form component and a label. Because of this, I need to create a delegate for add(IValidator) on the panel that adds the validator to the form component. All the validators need a non-default resource key, since the default creats duplicates in a ListView. Any ideas?
On 7/21/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > Use cases for validators are different, that's why it makes sense in one but > not the other. Text fields ultimately live inside a user's session so they > are threadsafe by default, validators on the other hand can be shared as > singletons. > > Igor > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > Phil Kulak > > Sent: Thursday, July 21, 2005 8:00 AM > > To: wicket-user@lists.sourceforge.net > > Subject: Re: [Wicket-user] VOTE: make AbstractValidator threadsafe > > > > Yea, but if you don't create the validator yourself, you're > > totally out of luck. What's wrong with validators holding > > state? They're just going to attached to stateful components > > anyway. I mean, why stop there? Let's make TextField thread > > safe too. :) > > > > On 7/21/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > I guess resourceKey isn't such a good idea after all, as it > > breaks the > > > thread safety we just introduced. It should be enough to > > remove this > > > but make getResourceKey(FormComponent) overridable, so > > people can do > > > this with annonymous classes. Slightly inconvient, but > > safe. And safe > > > should win over inconvient. > > > > > > Eelco > > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration > > Strategies from IBM. Find simple to follow Roadmaps, > > straightforward articles, informative Webcasts and more! Get > > everything you need to get up to speed, fast. > > http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick > > _______________________________________________ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opclick > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user