Re: Date validator and I18N

2004-04-16 Thread Stjepan Brbot
Thanks Nial and others. Yes, that's it, exactly. Unfortunately I have to duplicate my group for each language but I think copy/paste will help. BTW, I'll look at nightly build of Validator and its inheritance feature to see how could I exploit this new functionality. Stjepan Brbot "Niall Pemb

RE: Date validator and I18N

2004-04-14 Thread Joe Hertz
asier. In fact, it makes it easier to think of your struts app in terms of the business objects, which is what the goal should be. -Joe > -Original Message- > From: Takhar, Sandeep [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 14, 2004 1:41 PM > To: Struts Users Mailin

RE: Date validator and I18N

2004-04-14 Thread Takhar, Sandeep
April 14, 2004 1:14 PM To: 'Struts Users Mailing List' Subject: RE: Date validator and I18N Sandeep, That's more or less what I found as well. I gave up eons before you did though. Glad it wasn't just me. My "previous solution" was an utter kludge to BeanUtils

RE: Date validator and I18N

2004-04-14 Thread Joe Hertz
om: Takhar, Sandeep [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 14, 2004 7:39 AM > To: Struts Users Mailing List > Subject: RE: Date validator and I18N > > > I have coded LocaleBeanUtils, but had to subclass the whole > thing since it seems like it is a version behi

RE: Date validator and I18N

2004-04-14 Thread Takhar, Sandeep
PROTECTED] Sent: Tuesday, April 13, 2004 10:51 PM To: 'Struts Users Mailing List' Subject: RE: Date validator and I18N Yes, you can get the dates validated this way, but isn't actually the tough hurdle. You've got Date objects being stored some place. You'll need them

Re: Date validator and I18N

2004-04-14 Thread Adam Hardy
sday, April 13, 2004 7:04 PM To: Struts Users Mailing List Subject: RE: Date validator and I18N I haven't personally tried doing this, but according to the doc you can specify language/country/variant on the formset when defining your validation so that the validator will choose the be

RE: Date validator and I18N

2004-04-13 Thread Joe Hertz
o:[EMAIL PROTECTED] > Sent: Tuesday, April 13, 2004 7:04 PM > To: Struts Users Mailing List > Subject: RE: Date validator and I18N > > > I haven't personally tried doing this, but according to the > doc you can specify language/country/variant on the formset > when

Re: Date validator and I18N

2004-04-13 Thread Niall Pemberton
In your validation.xml you can define different formsets for different localle by specifiying language/country/variant attributes Means you have to duplicate your validation rules for each language in Struts 1.1 - however the latest nightly build of validator includes an "inheritance" featur

RE: Date validator and I18N

2004-04-13 Thread Jeff Caesar
I haven't personally tried doing this, but according to the doc you can specify language/country/variant on the formset when defining your validation so that the validator will choose the best one available for the given user's locale. >From the validator DTD: So you would want to create fou