Browser Error: PrimeFacesExt not defined

Im using PrimeFaces 3.5 with PrimeFaces Extensions 0.7.0 and OmniFaces version 1.4

I have a accordionPanel with ui: the witch fragment looks like this:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"
    xmlns:pe="http://primefaces.org/ui/extensions"> 
<ui:fragment>

    <f:metadata>
        <f:event type="javax.faces.event.PreRenderViewEvent" listener="#{fleet.preRenderView()}" />
    </f:metadata>

    <!-- Other things.... -->

    <!-- Dialogs -->
    <p:dialog id="createSubFleetDialog" widgetVar="createSubFleet"
        header="#{msg.administration_fleet_createFleetDialog_title}">
        <h:panelGrid id="createSubFleetPanel" columns="2">

            <!-- Here im using primefaces extensions -->

            <h:outputLabel for="newFleetName" value="#{msg.administration_fleet_fleetName}" />
            <p:inputText id="newFleetName" value="#{fleet.fleetName}">
                <pe:keyFilter mask="alphanum"></pe:keyFilter>
            </p:inputText>

        </h:panelGrid>
    </p:dialog>


</ui:fragment>
</html>

There are no warnings or errors in eclipse, but a browser error occurs when starting my application : Not prepared ReferenceError: PrimeFacesExt not defined

Does anyone know how to solve this problem?

+4
source share
2 answers

I had the same problem, but I found a workaround for it at this link: http://forum.primefaces.org/viewtopic.php?f=14&t=36652

The problem seems to be:

, mainfaces ext js , ext.

... ui: include, .

, dummy pe <h:body> :

<pe:blockUI></pe:blockUI>

:

<pe:inputNumber style="display:none" />

.

+4

, <h:head> :

<h:outputScript library="primefaces-extensions" name="primefaces-extensions.js"/>

xmlns:pe, !

+2

Source: https://habr.com/ru/post/1527869/


All Articles