<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Primefaces Dialog Framework Dialog funktioniert nicht</title><link>https://answers.axonivy.com/questions/1402/primefaces-dialog-framework-dialog-funktioniert-nicht</link><description>&lt;p&gt;Guten Morgen zusammen, 
bin langsam am Verzweifeln - im Primefaces Showcase (&lt;a href="http://www.primefaces.org/showcase/ui/df/basic.xhtml)"&gt;http://www.primefaces.org/showcase/ui/df/basic.xhtml)&lt;/a&gt; wird beschrieben, wie eine XHTML-Datei als Dialog aufgerufen werden kann. In diesem Beispiel wird dieses über den Aufruf:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; RequestContext.getCurrentInstance().openDialog("viewCars");
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;durchgeführt. 
Habe versucht dieses in einem Event (aufgerufen durch eine p:commandbutton) in einem Skriptstep nachzubauen. Code des Skriptsteps:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import org.primefaces.context.RequestContext;
RequestContext.getCurrentInstance().openDialog("info");
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;die entsprechende XHTML-Date habe ich über NEW -&amp;gt; HTML DIALOG VIEW erzeugt und liegt im Bereich des Aufrufenden JSF-Dialogs.
Der Skriptstep wird ohne Fehlermeldung oder LOG-Eintrag durchlaufen. Auch die Erzeugung einer gleichnamigen XHTML-Datei direkt unter WebContent brachte keinen Erfolg.
Was mache ich falsch ?&lt;/p&gt;
&lt;p&gt;Herzlichen Dank für die Hilfe&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1402/primefaces-dialog-framework-dialog-funktioniert-nicht" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 23 Jul 2015 15:58:46 -0400</lastBuildDate><item><title>Answer by Adrian Imfeld</title><link>https://answers.axonivy.com/questions/1402/primefaces-dialog-framework-dialog-funktioniert-nicht/1405</link><description>&lt;p&gt;You are talking about the Primefaces Dialog Framework. I tried out, but was also not able to make it executable.&lt;/p&gt;
&lt;p&gt;Have you configured your faces-config.xml as it is requiered?&lt;br&gt;
See: &lt;a href="http://stackoverflow.com/questions/17128173/jsf-2-primefaces-opendialog-not-working"&gt;http://stackoverflow.com/questions/17128173/jsf-2-primefaces-opendialog-not-working&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Maybe the util class RequestContext is not usable in Ivy...&lt;/p&gt;
&lt;p&gt;Is it an option for you to use the simple dialog component of primefaces?&lt;br&gt;
It works fine under Ivy and offers also a lot of nice options.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt; p:commandButton value="showDialog" type="button" onclick="PF('dialog').show();" /&amp;gt;
&amp;lt; p:dialog header="Dialog" widgetVar="dialog" minHeight="40" &amp;gt;
   &amp;lt; h:outputText value="Hello World!" /&amp;gt;
&amp;lt; /p:dialog &amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;See: &lt;a href="http://www.primefaces.org/showcase/ui/overlay/dialog/basic.xhtml"&gt;http://www.primefaces.org/showcase/ui/overlay/dialog/basic.xhtml&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adrian Imfeld</dc:creator><pubDate>Thu, 23 Jul 2015 15:58:46 -0400</pubDate><guid>https://answers.axonivy.com/questions/1402/primefaces-dialog-framework-dialog-funktioniert-nicht/1405</guid></item></channel></rss>