Re: Client/Server Side Validation for Struts 1.1

2001-06-20 Thread SRadford
AIL PROTECTED]> Subject: Re: Client/Server Side Validation for Struts 1.1

Re: Client/Server Side Validation for Struts 1.1

2001-06-19 Thread David Winterfeldt
ristian Cryder" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>; "Jonathan > Asbell" <[EMAIL PROTECTED]> > Sent: Tuesday, June 19, 2001 11:12 AM > Subject: RE: Client/Server Side Validation for > Struts 1.1 > > > > Hi Jonathan,

Re: Client/Server Side Validation for Struts 1.1

2001-06-19 Thread Jonathan
OUR FORMAT. Therfore the filter must know about "@" characters etc. - Original Message - From: "Christian Cryder" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Jonathan Asbell" <[EMAIL PROTECTED]> Sent: Tuesday, June 19, 2001 11:12 AM Subject: RE: Cl

RE: Client/Server Side Validation for Struts 1.1

2001-06-19 Thread Christian Cryder
ities > > What do you think? > > - Original Message - > From: "David Winterfeldt" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>; "Jonathan Asbell" > <[EMAIL PROTECTED]> > Sent: Monday, June 18, 2001 11:01 PM > Subject: Re: Client

Re: Client/Server Side Validation for Struts 1.1

2001-06-19 Thread Jonathan Asbell
uot; <[EMAIL PROTECTED]> Sent: Monday, June 18, 2001 11:01 PM Subject: Re: Client/Server Side Validation for Struts 1.1 > What do you mean by "converted into the format of the > system"? Do you mean the object and not the String > representation in the ActionForm? Or a

Re: Client/Server Side Validation for Struts 1.1

2001-06-18 Thread David Winterfeldt
> situation as needed, and one central validation > package. > > - Original Message - > From: "David Winterfeldt" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, June 18, 2001 2:26 PM > Subject: RE: Client/Server Side Validatio

Re: Client/Server Side Validation for Struts 1.1

2001-06-18 Thread Jonathan Asbell
situation as needed, and one central validation package. - Original Message - From: "David Winterfeldt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 18, 2001 2:26 PM Subject: RE: Client/Server Side Validation for Struts 1.1 > I've still been

RE: Client/Server Side Validation for Struts 1.1

2001-06-18 Thread David Winterfeldt
dation > framework? > > Fr. > > -Original Message----- > From: David Winterfeldt > [mailto:[EMAIL PROTECTED]] > Sent: 15 June 2001 14:31 > To: [EMAIL PROTECTED] > Subject: RE: Client/Server Side Validation for > Struts 1.1 > > > I just wanted to pu

RE: Client/Server Side Validation for Struts 1.1

2001-06-18 Thread Rey Francois
tions for a validation framework? Fr. -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: 15 June 2001 14:31 To: [EMAIL PROTECTED] Subject: RE: Client/Server Side Validation for Struts 1.1 I just wanted to put this out there to see what people think since I too

Re: Client/Server Side Validation for Struts 1.1

2001-06-15 Thread Jonathan
CTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 9:34 AM Subject: Re: Client/Server Side Validation for Struts 1.1 > I've gotten down to a 15,000 foot view of Barracuda, and it looks like > they are doing some nice work. All things remaining equal, I believe it >

Re: Client/Server Side Validation for Struts 1.1

2001-06-15 Thread Jonathan
Sent: Friday, June 15, 2001 9:34 AM Subject: Re: Client/Server Side Validation for Struts 1.1 > I've gotten down to a 15,000 foot view of Barracuda, and it looks like > they are doing some nice work. All things remaining equal, I believe it > would be better if our approaches were comp

Re: Client/Server Side Validation for Struts 1.1

2001-06-15 Thread Ted Husted
I've gotten down to a 15,000 foot view of Barracuda, and it looks like they are doing some nice work. All things remaining equal, I believe it would be better if our approaches were compatible with Barracuda. For example, if someone did want to do more with event processing, using as much of Barra

RE: Client/Server Side Validation for Struts 1.1

2001-06-15 Thread David Winterfeldt
ration with struts is just in two places: > in a descendent from the > ActionServlet, where we load the configuration file, > and in a descendant > from the ActionForm, where the validate method calls > the mapper associated > with the form and produces an ActionError for each >

RE: Client/Server Side Validation for Struts 1.1

2001-06-15 Thread Rey Francois
rom the ActionForm, where the validate method calls the mapper associated with the form and produces an ActionError for each validation/transformation failure. Fr. -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: 14 June 2001 06:32 To: [EMAIL PROTECTED] Subject: Re: Cl

Re: Client/Server Side Validation for Struts 1.1

2001-06-13 Thread Jonathan Asbell
have as much activity and it seems as though they are still working out some larger bugs. - Original Message - From: "David Winterfeldt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 14, 2001 12:31 AM Subject: Re: Client/Server Side Validation for St

Re: Client/Server Side Validation for Struts 1.1

2001-06-13 Thread David Winterfeldt
I just saw the type conversion thread going on in the user list, but I've thought about this for a bit and you mentioned possibly modeling or taking code from an existing framework. How closely have you looked at Barracuda Ted? Some of what they do is interesting. I think we could make an Act

Re: Client/Server Side Validation for Struts 1.1

2001-06-11 Thread Craig R. McClanahan
On Tue, 5 Jun 2001, William Jaynes wrote: > Remember... separation of view from model. The act of displaying an > amount in a particular currency format is separate from determining what > that amount is. So the code used to implement the display of the amount > should not be mixed up with the

Re: Client/Server Side Validation for Struts 1.1

2001-06-11 Thread Craig R. McClanahan
On Tue, 5 Jun 2001, Michael Westbay wrote: > > But what kind of compexity are you looking at? Let's take a small example of > languages and countries to cover: > > Languages: English, Spainish, Japanese > Locales: U.S., England, Spain, Japan > > Now you need resources: > > en, en_US,

Re: Client/Server Side Validation for Struts 1.1

2001-06-05 Thread Jonathan
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 05, 2001 10:55 AM Subject: Re: Client/Server Side Validation for Struts 1.1 > > Memo from Nic Hobbs of PricewaterhouseCoopers > > Start of message text

Re: Client/Server Side Validation for Struts 1.1

2001-06-05 Thread Ted Husted
I still have the feeling that we lack a decent foundation package to do the grunt work of typecasting and String formatting, so that things like a Validation servlet and something like a tag could share a common codebase. We might want to start with something like this: < http://www.mail-arch

Re: Client/Server Side Validation for Struts 1.1

2001-06-05 Thread Paul Speed
Asbell" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 05, 2001 7:40 AM > Subject: Re: Client/Server Side Validation for Struts 1.1 > > > Ok, so why then is this an issue. What is the value of seeing Pounds > AND > > Euros on the sam

Re: Client/Server Side Validation for Struts 1.1

2001-06-05 Thread David Winterfeldt
a > certain amount of validation > logic in 'widgets', like the taglibs suggested: > , > etc. providing we have some way of defining other > than in code exactly what > it means to be a 'name' and so on - I guess the idea > of a sort of da

Re: Client/Server Side Validation for Struts 1.1

2001-06-05 Thread nic.hobbs
So the code used to implement the display of the amount should not be mixed up with the code used to determine the amount. - Original Message ----- From: "Jonathan Asbell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 05, 2001 7:40 AM Subject: Re: Client/

Re: Client/Server Side Validation for Struts 1.1

2001-06-05 Thread William Jaynes
Message - From: "Jonathan Asbell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 05, 2001 7:40 AM Subject: Re: Client/Server Side Validation for Struts 1.1 > Ok, so why then is this an issue. What is the value of seeing Pounds AND > Euros on the s

Re: Client/Server Side Validation for Struts 1.1

2001-06-05 Thread Jonathan Asbell
give me then conversion? By the way Ted, you are up early man. I guess it finally thawed out upstate ;^> - Original Message - From: "Ted Husted" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 05, 2001 7:28 AM Subject: Re: Client/Server Side

Re: Client/Server Side Validation for Struts 1.1

2001-06-05 Thread Ted Husted
Wouldn't exchange rates count as business logic? I think the thrust here is the ability to take a given binary number and display it using the currency sign and format ($###.## vs ###,##DM] for a given nation. This package would consider the value immutable. Another player would have to change th

Re: Client/Server Side Validation for Struts 1.1

2001-06-05 Thread Jonathan Asbell
- Original Message - From: "Michael Westbay" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 04, 2001 7:33 PM Subject: Re: Client/Server Side Validation for Struts 1.1 > Husted-san wrote: > > > In this context, we would want the validators to be a

RE: Client/Server Side Validation for Struts 1.1

2001-06-05 Thread Rey Francois
We are developing here such validation framework. I've already posted a message about this on 11 May, but I didn't get much reply yet. The problem we are trying to solve here is to not only do a validation, but also convert the form fields into objects, e.g. from a string to a date object, an ope

Re: Client/Server Side Validation for Struts 1.1

2001-06-04 Thread Ted Husted
Michael Westbay wrote: > One question, what's the default fall-back? With the suffixes being added, > one could have no suffix as the fall back option. But what about > picture-tokens? locale="DEFAULT"? If we did something like this (and this is all very preliminary whiteboard stuff, so we mig

Re: Client/Server Side Validation for Struts 1.1

2001-06-04 Thread Michael Westbay
Husted-san wrote: > One way to go would be to support a second set of resources, named for > the country-code portion of the locale (_us, _ca). These would all have > the same properties, just like the language resources, but use different > masks and picture tokens for different countries. [...]

Re: Client/Server Side Validation for Struts 1.1

2001-06-04 Thread Ted Husted
One way to go would be to support a second set of resources, named for the country-code portion of the locale (_us, _ca). These would all have the same properties, just like the language resoruces, but use different masks and picture tokens for different countries. So we might have something like

Re: Client/Server Side Validation for Struts 1.1

2001-06-04 Thread Michael Westbay
Husted-san wrote: > In this context, we would want the validators to be able to recognize > _xx as the location (or have a super method that parsed that from the > locale for them). This would allow us to continue to use the one session > locale property to cover both situations. But what kind of

Re: Client/Server Side Validation for Struts 1.1

2001-06-04 Thread Ted Husted
"Deadman, Hal" wrote: > I think it overly complicates things to deal with forms based on a user's > selected locale. I do think formating for display should take into account > the locale. Agreed. Part of it is that we're now thinking about an omnibus object, or package of objects, not directly l

RE: Client/Server Side Validation for Struts 1.1

2001-06-04 Thread Deadman, Hal
mating for display should take into account the locale. Hal > -Original Message- > From: Ted Husted [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 04, 2001 12:13 PM > To: [EMAIL PROTECTED] > Subject: Re: Client/Server Side Validation for Struts 1.1 > > > We'

Re: Client/Server Side Validation for Struts 1.1

2001-06-04 Thread Jonathan
-- From: "Ted Husted" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 04, 2001 12:42 PM Subject: Re: Client/Server Side Validation for Struts 1.1 > Yes, you're right. > > In this context, we would want the validators to be able to recognize > _

Re: Client/Server Side Validation for Struts 1.1

2001-06-04 Thread Ted Husted
Yes, you're right. In this context, we would want the validators to be able to recognize _xx as the location (or have a super method that parsed that from the locale for them). This would allow us to continue to use the one session locale property to cover both situations. Jonathan wrote: > >

Re: Client/Server Side Validation for Struts 1.1

2001-06-04 Thread Jonathan
itance with the Language being first, and the Location being and overridable subclass. - Original Message - From: "Ted Husted" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 04, 2001 12:12 PM Subject: Re: Client/Server Side Validation for Struts 1.1

Re: Client/Server Side Validation for Struts 1.1

2001-06-04 Thread Ted Husted
We're not only talking just about language now, we're talking about validating things like telephone numbers and postal codes based where the user is located, regardless of what language they prefer. Michael's example was a Spanish-speaking resident in the US, who might be in the ES locale as to l

Re: Client/Server Side Validation for Struts 1.1

2001-06-04 Thread David Winterfeldt
t; copied along with the > > error message in the persons language > > > > - Original Message - > > From: "Ted Husted" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Monday, June 04, 2001 8:54 AM > > Subject: Re: Cli

Re: Client/Server Side Validation for Struts 1.1

2001-06-04 Thread Jonathan
lt;[EMAIL PROTECTED]> Sent: Monday, June 04, 2001 10:32 AM Subject: Re: Client/Server Side Validation for Struts 1.1 > I believe that would happen under the current model. The validate > servlet is keyed to the user's locale, and would returns the language > elements for that

Re: Client/Server Side Validation for Struts 1.1

2001-06-04 Thread Ted Husted
was copied along with the > error message in the persons language > > - Original Message - > From: "Ted Husted" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, June 04, 2001 8:54 AM > Subject: Re: Client/Server Side Validation for St

Re: Client/Server Side Validation for Struts 1.1

2001-06-04 Thread Jonathan Asbell
o: <[EMAIL PROTECTED]> Sent: Monday, June 04, 2001 8:54 AM Subject: Re: Client/Server Side Validation for Struts 1.1 > Good points, Michael. > > Language is one thing, location is another, and right now Java i18n does > seem to infer location from language. > > In pract

Re: Client/Server Side Validation for Struts 1.1

2001-06-04 Thread Ted Husted
Good points, Michael. Language is one thing, location is another, and right now Java i18n does seem to infer location from language. In practice, this says that if they choose country XX on a contact form, then they should get the validations for country XX, regardless of any global XX locale

Re: Client/Server Side Validation for Struts 1.1

2001-06-03 Thread Michael Westbay
Husted-san wrote: > The validation.xml supports creating FormSets for different locales. Wait a second. You just said "locales" right? Yet what are Java locales used for? Language. I live in Japan, however, if I'm browsing in English, what kind of phone number am I going to get? Dose the

Re: Client/Server Side Validation for Struts 1.1

2001-06-03 Thread Ted Husted
The validation.xml supports creating FormSets for different locales. The language used to identify the field for JavaScript validation is also defined here. I don't think you would need to change anything in the code, any more than you would if this were coming from the Struts message resource. Th

Re: Client/Server Side Validation for Struts 1.1

2001-06-03 Thread Jim Richards
> Here is an excerpt of the validation.xml file (I've >attached the full version). The xml file lets you >define your validation rules, define global constants, >locale constants, and a formset has country, language, >and variant just like locale. My reading of the validation.xml means that f

Re: Client/Server Side Validation for Struts 1.1

2001-06-03 Thread Ted Husted
David Winterfeldt wrote: > I think it would be good to get a list together of all > the basic validations we would want to do. I normally > want to do validations based on the database field the > bean field corresponds to and basic things like phone > numbers, zip codes, etc. Is the date valida

Re: Client/Server Side Validation for Struts 1.1

2001-06-03 Thread David Winterfeldt
The validation framework can handle different locales. Here is an excerpt of the validation.xml file (I've attached the full version). The xml file lets you define your validation rules, define global constants, locale constants, and a formset has country, language, and variant just like locale

Re: Client/Server Side Validation for Struts 1.1

2001-06-03 Thread Michael Westbay
Richards-san wrote: > >[...] where they had made a nice method to change the language > > of the screens, but all the input field validation were based on American > > standard. Not very smart. I've used a number of such pages where I was unable to enter a valid phone numbers and/or zip code du

Re: Client/Server Side Validation for Struts 1.1

2001-06-03 Thread Andrew Harris
Regarding formatting/validation of money, there is one aspect which I omitted to mention earlier, namely in some countries it is necessary to support multiple currencies, such as DM and euro in Germany. Although there is a distinct locale each for DM and euro, there may be a reason to display

Re: Client/Server Side Validation for Struts 1.1

2001-06-03 Thread Jim Richards
>> Non-regex validations can easily be added. What did >> you have in mind exactly? Do you mean date, credit >> cards, etc? I also thought that we could make >> constants for things like phone numbers, zip, social >> security, etc., but you could override them if you >> wanted to. > >Just reme

Re: Client/Server Side Validation for Struts 1.1

2001-06-03 Thread Anders K. Olsen
- Original Message - From: "David Winterfeldt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 03, 2001 8:57 AM Subject: Re: Client/Server Side Validation for Struts 1.1 > Non-regex validations can easily be added. What did > you h

Re: Client/Server Side Validation for Struts 1.1

2001-06-02 Thread David Winterfeldt
--- Ted Husted <[EMAIL PROTECTED]> wrote: > David Winterfeldt wrote: > > Nic Hobbs and I have both volunteered for the > Standard > > (Server Side) Validations and Ted Husted, Nic > Hobbs, > > Spencer Smith and I have volunteered for the > Client > > Validations (JavaScript). Ted has been using

Re: Client/Server Side Validation for Struts 1.1

2001-06-02 Thread Ted Husted
David Winterfeldt wrote: > Nic Hobbs and I have both volunteered for the Standard > (Server Side) Validations and Ted Husted, Nic Hobbs, > Spencer Smith and I have volunteered for the Client > Validations (JavaScript). Ted has been using a > validation framework I've done on a project I'm real