<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Primeface Dialog Framework Path</title><link>https://answers.axonivy.com/questions/1893/primeface-dialog-framework-path</link><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;we want to use the Primefaces Dialog Framework in our processes.&lt;/p&gt;
&lt;p&gt;We have a Html Dialog, let say,  TestDialogFramework, which consists of two views:
TestDialogFramework.xhtml and
viewToShow.xhtml&lt;/p&gt;
&lt;p&gt;On the TestDialogFramework.xhtml we have a command button. In the actionListener Method we call the Dialog by:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;RequestContext.getCurrentInstance().openDialog("viewToShow");
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In this case, the viewToShow.xhtml opens as dialog as expected. &lt;/p&gt;
&lt;p&gt;But when we want to call a xhtml which is another Ivy Html Dialog the call:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  RequestContext.getCurrentInstance().openDialog("otherHtmlDialog);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;fails. &lt;/p&gt;
&lt;p&gt;How should we specify the path in openDialog Method?&lt;/p&gt;
&lt;p&gt;Thank you in advance.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1893/primeface-dialog-framework-path" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 10 Aug 2016 14:48:08 -0400</lastBuildDate><item><title>Answer by Christian Strebel</title><link>https://answers.axonivy.com/questions/1893/primeface-dialog-framework-path/1954</link><description>&lt;p&gt;This seems not possible.&lt;/p&gt;
&lt;p&gt;But you could include with ui:include a shared snipped from webcontent in your viewToShow.xhtml e.g.:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
  xmlns:ui="http://xmlns.jcp.org/jsf/facelets"&amp;gt;
&amp;lt;h:head&amp;gt;
    &amp;lt;title&amp;gt;My Dialog&amp;lt;/title&amp;gt;
&amp;lt;/h:head&amp;gt;
&amp;lt;h:body&amp;gt;
    &amp;lt;ui:include src="/layouts/includes/footer.xhtml" /&amp;gt;
&amp;lt;/h:body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Strebel</dc:creator><pubDate>Wed, 10 Aug 2016 14:48:08 -0400</pubDate><guid>https://answers.axonivy.com/questions/1893/primeface-dialog-framework-path/1954</guid></item></channel></rss>