You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Peter H (JIRA)" <ji...@apache.org> on 2013/09/06 09:22:52 UTC

[jira] [Created] (TAP5-2171) LinkSubmit Broken With Client-side Validation

Peter H created TAP5-2171:
-----------------------------

             Summary: LinkSubmit Broken With Client-side Validation
                 Key: TAP5-2171
                 URL: https://issues.apache.org/jira/browse/TAP5-2171
             Project: Tapestry 5
          Issue Type: Bug
    Affects Versions: 5.4
            Reporter: Peter H


This was confirmed on the mailing list by one other user of 5.4 alpha 15.

Example tml;
<!DOCTYPE html>
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
	<head>
		<title>Bob</title>
	</head>
	<body>
		<t:form>
			<t:textfield value="bob" validate="required" />
			<t:linksubmit>Link Submit</t:linksubmit>
			<t:submit />
		</t:form>
	</body>
</html>

Example java;
@Property
private String bob_;

Clicking the linksubmit causes a POST regardless of the client-side validation on textfield bob, and when the page reloads we see the validation message.

Clicking the submit causes no POST and client-side validation appears immediately.

Thanks!
Peter

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira