<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: JSF HTML Dialog - Exit End not closing the Dialog</title><link>https://answers.axonivy.com/questions/1150/jsf-html-dialog-exit-end-not-closing-the-dialog</link><description>&lt;p&gt;Hello,
I have a problem closing a JSF HTML Dialog.&lt;/p&gt;
&lt;p&gt;A start process is launching a JSF HTML Dialog (consultation List Demande) with a list of demands (some data). In this list of demand each demand can be displayed by cliking on a button.  This button launches another JSF HTML Dialog (open selected demand) which displays the details of this demand.&lt;/p&gt;
&lt;p&gt;When finished, the user click on the exit button.  A &lt;code&gt;ExitEnd&lt;/code&gt; is used to get back to the first HTML Dialog.
I want to display the list of demands again so i close the "selectDemande" to get back to the Start Process and if a boolean is false i restart the first HTML dialog (with the list).&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/exitend1.jpg"&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/exitend2.jpg"&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/exitend3.jpg"&gt;&lt;/p&gt;
&lt;p&gt;The problem is that when i try to finish the first HTML dialog (the one with the list) it starts a loop as shown here :
&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/exitend4.jpg"&gt;&lt;/p&gt;
&lt;p&gt;It's like the &lt;code&gt;ExitEnd&lt;/code&gt; closes the second HTML Dialog (the one with the detail) again and not the one with the list.&lt;/p&gt;
&lt;p&gt;There is obviously something I do wrong but I can't see what.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1150/jsf-html-dialog-exit-end-not-closing-the-dialog" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 10 Feb 2015 15:55:41 -0500</lastBuildDate><item><title>Comment by dbalasse on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/1150/jsf-html-dialog-exit-end-not-closing-the-dialog#1154</link><description>&lt;p&gt;Thank you for the answer.
I've solved my problem by calling the second dialog in the start process.  That seems to work.&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/exitend5.jpg"&gt;&lt;/p&gt;
&lt;p&gt;I still don't understand what was the problem calling a dialog in the logic of another dialog.  If it doesn't work why is it possible to do it  (the icon is in the palette) ?
Thanks again for your answer.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dbalasse</dc:creator><pubDate>Tue, 10 Feb 2015 15:55:41 -0500</pubDate><guid>https://answers.axonivy.com/questions/1150/jsf-html-dialog-exit-end-not-closing-the-dialog#1154</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/1150/jsf-html-dialog-exit-end-not-closing-the-dialog/1152</link><description>&lt;p&gt;Instead of opening another User Dialog to display the selected demand you could work around the problem by using a primefaces modal dialog (&lt;a href="http://www.primefaces.org/showcase/ui/overlay/dialog/basic.xhtml"&gt;p:dialog&lt;/a&gt;) which is not rendred by default. &lt;/p&gt;
&lt;p&gt;If the users selects a "demand" you could update the "rendered" flag of the p:dialog from false to true. And it's concrete content.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 10 Feb 2015 13:41:25 -0500</pubDate><guid>https://answers.axonivy.com/questions/1150/jsf-html-dialog-exit-end-not-closing-the-dialog/1152</guid></item></channel></rss>