[
https://issues.apache.org/jira/browse/TAP5-2467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14363288#comment-14363288
]
Jochen Kemnade commented on TAP5-2467:
--------------------------------------
That would be great. Something like
{{org.apache.tapestry5.integration.app1.FormTests.client_side_validation()}}
would probably be a good start.
I'd create a page that uses a client-side event listener for the new event that
changes the DOM in some way (adds content or changes the background-color or
something). In the test, I'd let the validation fail and check for the DOM
modification.
> Validation in error event
> -------------------------
>
> Key: TAP5-2467
> URL: https://issues.apache.org/jira/browse/TAP5-2467
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Reporter: Charles Capon
> Labels: event, form, javascript, patch
> Attachments: 0001-Add-a-validation-in-error-event.patch
>
>
> Hey !
> I'd like to see a "validation in error" event for form. It would have helped
> me in many case.
> I'm providing a patch that should work. If Anything else can be done, I'll be
> glad to help.
> FYI, we talk about this a long time ago here:
> http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/Prevent-double-or-more-submissions-td5729405.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)