I have a simple question:
I was used to open an dialog of the Primefaces 4.0 dialog franework using this Java command:
Code: Select all
RequestContext.getCurrentInstance().openDialog(
"/example/exampleDialog",
options, null);
Now we have switched to Primefaces 5.0 and it's not working anymore. The progress indecator which indicates a loading process is working until all eternity.
I have added this to faces-config.xml:
Code: Select all
<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>
</application>
<application>
<default-render-kit-id>PRIMEFACES_MOBILE</default-render-kit-id>
</application>
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
<h:form>
<p:panelGrid columns="1" id="showDialogMediaPanel">
<p:row>
<p:column>
<p:commandLink
action="#{patientController.starteMitarbeiterSucheDialog()}">
<p:spacer width="3"></p:spacer>
<p:graphicImage styleClass="j_img_vertical_1"
value="/resources/img/png/find_1.png" width="18" height="21" />
<p:ajax event="dialogReturn"
listener="#{patientController.setOrgMitarbeiter}" />
</p:commandLink>
</p:column>
</p:row>
</p:panelGrid>
</h:form>
</h:body>
</html>
This components are being used from us to develop: Java 1.7 JSF Mojarra 2.2.6 EclipseLink 2.5.1 PrimeFaces 4.0 Glassfish Server 4.0 Advantage Database Server 10.10
Thanks a lot in advance for your help!