You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jezza (JIRA)" <ji...@apache.org> on 2018/06/11 14:21:00 UTC
[jira] [Created] (WICKET-6561) Behaviours receive events regardless
if they were rejected by the component.
Jezza created WICKET-6561:
-----------------------------
Summary: 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: Bug
Reporter: Jezza
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)