DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30757>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30757

Validator does not validate 'url' type of fields

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.1 Final                   |Unknown



------- Additional Comments From [EMAIL PROTECTED]  2004-08-25 11:15 -------
Ted,

I am using the Nightly build now.

My validation.xml has the following definition for the form:

        <form name="signupForm">
            <field property="username" depends="required">
                <msg name="required" key="error.username.required"/>
             </field>
             <field property="password" depends="required">
                <msg name="required" key="error.password.required"/>
             </field>
             <field property="confirmPassword" depends="required">
                <msg name="required" key="error.confirmPassword.required"/>
             </field>
             <field property="title" depends="required">
                <msg name="required" key="error.title.required"/>
             </field>
             <field property="firstName" depends="required">
                <msg name="required" key="error.firstName.required"/>
             </field>
             <field property="lastName" depends="required">
                <msg name="required" key="error.lastName.required"/>
             </field>
             <field property="email" depends="required, email">
                <msg name="required" key="error.email.required"/>
                <msg name="email" key="error.email.invalid"/>
             </field>
             <field property="url" depends="url">
                <msg name="url" key="error.url.invalid"/>
                <var>
                    <var-name>allowallschemes</var-name>
                    <var-value>true</var-value>
                </var>
                <var>
                    <var-name>allow2slashes</var-name>
                    <var-value>true</var-value>
                </var>
             </field>
        </form>

After using the nightly build, the url field is being validated. However, the 
problem I am now facing is that the validateUrl method is pointing it out as 
an incorrect URL no matter what URL I input.

validateUrl is allowing only blank (null) URLs now.

Please advise.

Regards,

Ashish.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to