The Web Client framework automatically associates a View class and Mediator class together using the <fx:Metadata> tag in the view and the "set view" property in the mediator. However it seems this connection only goes in one direction. The mediator class can call directly into the view class but the view can't call its associated mediator.
Is there a straight forward way to call a function in the Mediator class when something happens in the view? For example, I've created a complicated method refresh() method in the mediator. I want to call mediator.refresh() from the view when an event occurs (say clicking a button). Is there a straight forward way to do this?
Thanks