Dialog Framework - Basic is not working

UI Components for JSF
Post Reply
Posts: 18
Joined: 24 Jan 2019, 11:56

16 Apr 2019, 11:31

Dear Team,

I am trying to open a xhtml page in dialog box on click of button as per primeface example.
I have created all the required files and I have noticed "viewCars" function is being called every time when I click the button but the dialog is not appearing.

Could some explain what I have done wrong here or how to debug this further?.

Prime Face version - primefaces-7.0.jar


Posts: 18
Joined: 24 Jan 2019, 11:56

16 Apr 2019, 14:35

This is the code being used to open a dialog page.

public void viewCars() {
Map<String,Object> options = new HashMap<String, Object>();
options.put("resizable", false);
PrimeFaces.current().dialog().openDynamic("viewCars", options, null);


Primefaces 7.0
Netbeans 8.2
JSF 2.2

User avatar
Posts: 1152
Joined: 22 Apr 2013, 15:48

17 Apr 2019, 13:07

You might have missed the step where you need to add this to your faces-config.xml.

Code: Select all

<?xml version='1.0' encoding='UTF-8'?>
<faces-config version="2.2"
              xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd">
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 7.0.4 / PF Extensions 7.0.1

Posts: 18
Joined: 24 Jan 2019, 11:56

18 Apr 2019, 07:45

Dear Melloware,

Thank you so much for the great support. It's working after adding faces-config.xml into my project with the below line.


Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests