OpenDialog does not open

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
PAULOSPF
Posts: 1
Joined: 31 May 2017, 20:44

10 Nov 2017, 14:14

I'm having trouble calling OpenDialog.
Did not display any error, just does not open after the call.
I'm using the paradise template.
Is it missing another setting?
Thank you

faces-config.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
    
    <name>primefaces_paradise</name>
    
    <component>
        <component-type>org.primefaces.component.ParadiseMenu</component-type>
        <component-class>org.primefaces.paradise.component.ParadiseMenu</component-class>
    </component>
    
    <render-kit>
        <renderer>
            <component-family>org.primefaces.component</component-family>
            <renderer-type>org.primefaces.component.ParadiseMenuRenderer</renderer-type>
            <renderer-class>org.primefaces.paradise.component.ParadiseMenuRenderer</renderer-class>
        </renderer>
    </render-kit>
    
    <application>
        <action-listener>org.primefaces.application.DialogActionListener</action-listener>
        <navigation-handler>org.primefaces.application.DialogNavigationHandler</navigation-handler>
        <view-handler>org.primefaces.application.DialogViewHandler</view-handler>
        <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
    </application>
    
</faces-config>

Bean

Code: Select all

public void openDialog() {
		Map<String, Object> opcoes = new HashMap<>();
		opcoes.put("modal", true);
		opcoes.put("resizable", false);
		opcoes.put("contentHeight", 470);
		
		RequestContext.getCurrentInstance().openDialog("modalClient", opcoes, null);
	}

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

23 Nov 2017, 14:53

This is not a Layout or Theme issue. Please use core forum; viewforum.php?f=3

Post Reply

Return to “Paradise - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests