Hi, I'm a Wicket user since several years and I regularly lack a feature in Wicket : component state change. I know that Event/Sink exists but it doesn't feets my need : when I use a component that wraps others from a third party, I need it to be hidden or disabled when *all* subcomponents are. Since subcomponents are third party one I can hardly change them, so when they hide themselves it becomes very tricky to hide the wrapping component. I think it would be smarter (in term of code and complexity/readability) if I had a kind of visibility listener without the need to override components. For my case (visibility and enability) I thought that a Behavior could do that if it was notified of component "flag" change, but the "flag" attribute contains much more information (more internal management) that I need so I'm not sure that the good solution.
Event/Sink is not a good solution for me since it requires that third party components expose there changes and that's rarely the case. Finally, if it can help the discussion, another use case would be to get modelChanging event without overriding components (since they also come from third party) because we need to track every model change for security reason. I use Wicket 6, but I didn't see any change of those points in Wicket 7 or 8 in release notes. Thanks for ideas and advices. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Visibility-Enability-change-event-tp4675352.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
