I have two different dialogs, both are opened with
Code: Select all
<p:commandButton actionListener="#{bean.method}" icon="ui-icon-pencil" />
and subsequently calling
Code: Select all
RequestContext.getCurrentInstance().openDialog(outcome, options, params);
"outcome" is an xhtml file like
Code: Select all
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
<h:form>
<h:panelGrid columns="2" style="margin-bottom:10px; width: 600px" cellpadding="5">
<ui:repeat value="#{bean.elements}" var="element" >
......
</ui:repeat>
</h:panelGrid>
</h:form>
</h:body>
</html>
Performance was good with PrimeFaces 5.2.
Now, after upgrading to 6.1, it takes approx. 8 seconds for the dialog to appear after clicking the button. This is really unsatisfactory.
I'm sure it doesn't have anything to do with either database performance or the content of my dialog panel, because if I change the xhtml files for the dialogs to something like
Code: Select all
<p:dialog appenTo="@(body)">
<h:form>
<h:panelGrid columns="2" style="margin-bottom:10px; width: 600px" cellpadding="5">
<ui:repeat value="#{bean.elements}" var="element" >
......
</ui:repeat>
</h:panelGrid>
</h:form>
<p:dialog>
the response is fast. (This is, however, no solution because it's malfunctional).
How can I improve performance with PrimeFaces 6.1?
Any help is appreciated,
Boris
Primefaces 6.1 (upgrading vom 5.2)
JSF 2.2
payara-4.1.2.181