I have flash component, that can raise 2 types of javascript events with some important information.
One event send only one int, second sends smth like Map<Integer, Integer>, but it’s just javascript so classes are another, I think.
Is there any way to send this events to serverside and work with them?
I think the easiest thing to do is create a Vaadin Component which wraps the Flash component and catches the events on the client side and then simply relays them back to the server. Book Of Vaadin has good instructions on how to create the component.
There isn’t going to be a “simple” step-by-step explanation of how to do this, I’m afraid, as it’s not, well, simple! This is what my approach would be :
Personally, I’d split it into two problems to be tackled : how to send events to the the serverside from the browser (I’d be looking at the source for the bundled components, such as VButton etc) and then how to capture and and forward the javascript events.