You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Christian Köberl (JIRA)" <de...@tapestry.apache.org> on 2007/09/13 17:30:32 UTC

[jira] Updated: (TAPESTRY-1748) JavaScript error with form.clientValidation="false"

     [ https://issues.apache.org/jira/browse/TAPESTRY-1748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Köberl updated TAPESTRY-1748:
---------------------------------------

    Attachment: tapestry-form-noclient.zip

Here is a simple example, that shows the error. Just run "mvn jetty:run" and point jour browser to http://localhost:8080/tapestry-form-noclient/start

> JavaScript error with form.clientValidation="false"
> ---------------------------------------------------
>
>                 Key: TAPESTRY-1748
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1748
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.5
>            Reporter: Christian Köberl
>         Attachments: tapestry-form-noclient.zip
>
>
> The T5 validators generate the validation JavaScript although the form has set "clientValidation=false". The form does not inlude the required JS-libs when "clientValidation=false. This leads to an JS error on the client side.
> This script is generated with clientValidation=false:
> <script language="javascript" type="text/javascript">
> <!--
> Event.observe(window, "load", function() {
> Tapestry.Field.required('nameField', 'You must provide a value for 
> Name.');
> });
> // -->
> </script>
> This is the error in Firefox:
> Error: Event.observe is not a function
> Source: http://localhost:8080/tapestry-form-noclient/
> Line: 18

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org