You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Balázs Palcsó (JIRA)" <ji...@apache.org> on 2014/04/17 09:25:15 UTC

[jira] [Comment Edited] (TAP5-2075) Checkbox doesn't trigger VALIDATE event

    [ https://issues.apache.org/jira/browse/TAP5-2075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13972365#comment-13972365 ] 

Balázs Palcsó edited comment on TAP5-2075 at 4/17/14 7:24 AM:
--------------------------------------------------------------

I wanted to implement a registration form where the user has to accept the terms & conditions of the site by ticking a checkbox. I was trying to implement with @AssertTrue JSR-303 annotation http://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/AssertTrue.html

But it was not working on the server side and failed to attach a validator on the client side as well, so I ended up using the onValidate event of the page to check the value of the boolean behind the checkbox.
I raised the question that this JIRA raises as well:
http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/Is-it-possible-to-attach-validator-to-a-Checkbox-td5726553.html


was (Author: balapal):
I wanted to implement a registration form where the user has to accept the terms & conditions of the site by ticking a checkbox. I was trying to implement with @AssertTrue JSR-303 annotation http://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/AssertTrue.html

But it was not working, so it raised the question that this JIRA raises as well:
http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/Is-it-possible-to-attach-validator-to-a-Checkbox-td5726553.html

> Checkbox doesn't trigger VALIDATE event
> ---------------------------------------
>
>                 Key: TAP5-2075
>                 URL: https://issues.apache.org/jira/browse/TAP5-2075
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.6, 5.4
>            Reporter: Geoff Callender
>
> Imagine a list of entries with a "delete" checkbox on each row.
> When submitted, I would like to validate each checked row to decide whether it is OK to delete.
> I can write an event handler, onValidateFromDelete(), but it will never be called because Checkbox doesn't bubble up the VALIDATE event.



--
This message was sent by Atlassian JIRA
(v6.2#6252)