You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "François Facon (Commented JIRA)" <ji...@apache.org> on 2012/04/12 15:41:17 UTC

[jira] [Commented] (TAP5-1844) Datefield not fires onchange event on changes

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

François Facon commented on TAP5-1844:
--------------------------------------

Thanks for the patch Michael, but this.field.onchange is no more implemented in tapestry.js.

I guess we better have to use event like the following code
 if (this.field.value != result) 
{ 
	Tapestry.currentFocusField = this.field;
	//fire an FOCUS_CHANGE_EVENT event to force inputValidation on field
	document.fire(Tapestry.FOCUS_CHANGE_EVENT, this.field);
						 
}

Regards
François

 

                
> Datefield not fires onchange event on changes
> ---------------------------------------------
>
>                 Key: TAP5-1844
>                 URL: https://issues.apache.org/jira/browse/TAP5-1844
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.1
>            Reporter: Michael Wyraz
>
> It's a "regression" to TAPESTRY-238
> in datefield.js when setting the field's value, onchange() must be called if it exists

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira