Revision history [back]

click to hide/show revision 1
initial version

answered 2019-04-27 03:04:53 +0800

hamza0867 gravatar image hamza0867

Hello,

Plz can you listen to a custom event that was broadcasted using mvvm approach ? Let's say I have page1.zul where I have < include src="page2.zul" />. In page2.zul I have < button onClick="@command('triggerEvent')" />. With public void triggerEvent(){ Events.postEvent(new Event("myEvent")); } How do I catch the event "myEvent" in page1.zul ??

Thank you in advance

Hello,

Plz can you listen to a custom event that was broadcasted using mvvm approach ? Let's say I have page1.zul where I have < include src="page2.zul" />.

<include src="page2.zul"/>

In page2.zul I have < button onClick="@command('triggerEvent')" />.

<button onClick="@command('triggerEvent')"/>

With

public void triggerEvent(){
 Events.postEvent(new Event("myEvent"));
}

How do I catch the event "myEvent" myEvent in page1.zul ??

Thank you in advance

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More