You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2018/06/11 15:38:00 UTC
[jira] [Updated] (WICKET-6561) Behaviours receive events regardless
if they were rejected by the component.
[ https://issues.apache.org/jira/browse/WICKET-6561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sven Meier updated WICKET-6561:
-------------------------------
Priority: Minor (was: Major)
Component/s: wicket
Issue Type: Improvement (was: Bug)
> Behaviours receive events regardless if they were rejected by the component.
> ----------------------------------------------------------------------------
>
> Key: WICKET-6561
> URL: https://issues.apache.org/jira/browse/WICKET-6561
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Reporter: Jezza
> Priority: Minor
>
> A behaviour will receive events regardless if the behaviour was rejected or not.
> I can see some reasons the behaviour might want to still receive events, but I think it should at least be controllable from the component.
> Currently, there's no way to stop the event from propagating to the behaviour.
> I propose a simple fix.
> https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ComponentEventSender.java#L279
> After visiting the component, simply check if the shallow flag was set.
> If so, reset it, and return, continuing on the way.
> Otherwise, send the event the to the behaviours.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)