# Event Handler for template

**URL:** <https://forum.inductiveautomation.com/t/event-handler-for-template/4575>\
**Category:** Ignition\
**Created:** [June 5, 2012, 2:29pm UTC](https://forum.inductiveautomation.com/t/event-handler-for-template/4575 "2012-06-05T14:29:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 14, 2018, 9:10pm UTC](https://forum.inductiveautomation.com/t/event-handler-for-template/4575/3 "2018-11-14T21:10:43Z")

</div>

This is true, unless you do this:

> [@Template Event Handlers - Events in template and template instance](http://forum.inductiveautomation.com/t/template-event-handlers-events-in-template-and-template-instance/20831/2):
>
> In the mouseClicked event of the template you can dispatch the mouse event to the templates parent. from java.awt.event import MouseEvent evt = MouseEvent( event.source.parent ,event.getID() ,event.getWhen() ,event.getModifiers() ,event.x ,event.y ,event.clickCount ,event.popupTrigger ,event.button) event.source.parent.dispatchEvent(evt)

---

_[View the full topic](https://forum.inductiveautomation.com/t/event-handler-for-template/4575)._
