--- Sandeep Takhar <[EMAIL PROTECTED]> wrote:
> Outside of what is defined as differences in the
> revisions.html file -- what are the backwards
> compatibility issues.  This is really an effort to
> understand what will be required when Struts1-1 goes
> final and what changes will be required.
I don't know when Struts 1.1 will go final so it is
hard to say what features will be added between now
and then.

> 
> so...
> 
> What are the backwards compatibility issues between
> the nightly builds of the validator and the 7/2/2001
> build for struts1-0?
The revision notes cover most things.  I'm aware of at
least one person running a nightly build release of
the Validator with Struts 1.0.  The commons packages
(beans, collections, digester) are being used so they
would need to be added.  Otherwise a nightly build of
the Validator should work OK with Struts 1.0, but I
haven't tested this.

> 
> From a glance at the sample applications there seems
> to be a javascript difference.  In the 7/2/2001
> version the javascript requires a certain variable
> to
> be set "bCancel", whereas the latest build allows
> you
> to code this, but a simple function is necessary:
This shouldn't be required.  You don't need to add
this javascript.  It just gives you a way to turn off
the javascript validations for the cancel button (or
any other button you don't want validation run on).

> 
> <script language="javascript">
> <!--
> function submitForm(form) {
>   if (form.validate.value == "0") {
>     return true;
>   }
>   if (validateSimpleForm(form)) {
>     form.submit.value=" ..."; 
>     return true;
>   } 
>   else return false;
> };
> // -->
> </script>
> 
> What are the new validators that have been added? 
> Can
> these be used in the strut1-0 compliant version or
> will it not work?  What javascript additional
> functionality has been added for the old validators
> as
> well?  Basically what is a list of all changes to
> the
> validation.xml validators and which of these can I
> copy and paste into the struts1-0 compliant version?
The revision list covers most changes.  The new min
and max length validators could be cut and paste into
the 7/2/2001 release.  I'm thinking about making a few
updates (min/max and any bug fixes) to the 7/2/2001
release and making it a version 1.0 release.

> 
> When defining a msg parameter does the name
> attribute
> have to be defined?
Yes.

> 
> The alternative format for variables i.e.
> 
> var name="" value=""
> 
> does not work for struts1-0 compliant version?
I don't remember if you can still use this format or
not, but you should really use the nested element
structure.  This was changed so you could use cdata
tags around a regular expression and not have to
escape anything out.

David

> 
> 
> - sandeep
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

Reply via email to