<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: JSF Exit End not closing parent Dialog</title><link>https://answers.axonivy.com/questions/1546/jsf-exit-end-not-closing-parent-dialog</link><description>&lt;p&gt;Hello ivy team,
is it possible to "broadcast" a button click event to a parent window in jsf?
We would like to create a toolbar (save, cancel, continue) in a seperate Dialog in order to reuse it later.
The toolbar is a child dialog of the main window.
If I click a button in the toolbar which is connected to an "Exit End", the main window will not be closed.
What is the best way to fix this?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1546/jsf-exit-end-not-closing-parent-dialog" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 12 Nov 2015 09:54:57 -0500</lastBuildDate><item><title>Comment by Reguel Wermelinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/1546/jsf-exit-end-not-closing-parent-dialog#1551</link><description>&lt;p&gt;Yes this is possible. I modified the view a little bit so that it calls a logic event of the local component. And in a script step it's possible to evaluate the actionListener from the parent and call it. See the screenshot&lt;/p&gt;
&lt;p&gt;&lt;img alt="re-fire event" src="http://answers.axonivy.com/upfiles/fireEventToParentComponent.png"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 12 Nov 2015 09:54:57 -0500</pubDate><guid>https://answers.axonivy.com/questions/1546/jsf-exit-end-not-closing-parent-dialog#1551</guid></item><item><title>Comment by Florian Heinrich on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/1546/jsf-exit-end-not-closing-parent-dialog#1550</link><description>&lt;p&gt;Thank you for your quick reply. But the example code fires only the callback event. The logic from the child component should be executed first. Is that possible?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Florian Heinrich</dc:creator><pubDate>Tue, 10 Nov 2015 08:09:51 -0500</pubDate><guid>https://answers.axonivy.com/questions/1546/jsf-exit-end-not-closing-parent-dialog#1550</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/1546/jsf-exit-end-not-closing-parent-dialog/1547</link><description>&lt;p&gt;A JSF component can by design not close itself. &lt;/p&gt;
&lt;p&gt;But its possible to pass a callback method from the parent logic into the child component.
See HtmlDialogDemos/ComponentEventListenerDemo.ivp&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 09 Nov 2015 15:38:52 -0500</pubDate><guid>https://answers.axonivy.com/questions/1546/jsf-exit-end-not-closing-parent-dialog/1547</guid></item></channel></rss>