Hello,

we want to use the Primefaces Dialog Framework in our processes.

We have a Html Dialog, let say, TestDialogFramework, which consists of two views: TestDialogFramework.xhtml and viewToShow.xhtml

On the TestDialogFramework.xhtml we have a command button. In the actionListener Method we call the Dialog by:

RequestContext.getCurrentInstance().openDialog("viewToShow");

In this case, the viewToShow.xhtml opens as dialog as expected.

But when we want to call a xhtml which is another Ivy Html Dialog the call:

  RequestContext.getCurrentInstance().openDialog("otherHtmlDialog);

fails.

How should we specify the path in openDialog Method?

Thank you in advance.

asked 15.07.2016 at 10:53

Fotini%20Kalantidou's gravatar image

Fotini Kalan...
(suspended)
accept rate: 0%


This seems not possible.

But you could include with ui:include a shared snipped from webcontent in your viewToShow.xhtml e.g.:

<!DOCTYPE html>
<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">
<h:head>
    <title>My Dialog</title>
</h:head>
<h:body>
    <ui:include src="/layouts/includes/footer.xhtml" />
</h:body>
</html>
link

answered 10.08.2016 at 14:48

Christian%20Strebel's gravatar image

Christian St... ♦
3.2k31338
accept rate: 88%

edited 10.08.2016 at 14:48

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×51

Asked: 15.07.2016 at 10:53

Seen: 2,746 times

Last updated: 10.08.2016 at 14:48