You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2007/11/13 22:38:43 UTC
[jira] Closed: (TAPESTRY-1748) Field validators continue to
generate client-side JavaScript even though the Form is configured to not
do client-side validation
[ https://issues.apache.org/jira/browse/TAPESTRY-1748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAPESTRY-1748.
------------------------------------------
Resolution: Fixed
Fix Version/s: 5.0.7
The fix is part of the new relationship between the Form (via FormSupport) and the validators, wherein a JSON description of form validation is sent down, rather than the raw JavaScript to setup the form validation.
> Field validators continue to generate client-side JavaScript even though the Form is configured to not do client-side validation
> --------------------------------------------------------------------------------------------------------------------------------
>
> 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, 5.0.6
> Reporter: Christian Köberl
> Assignee: Howard M. Lewis Ship
> Fix For: 5.0.7
>
> 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