jsf 2 - this.jq.draggable is not a function when using primefaces dialog framework -


i'm trying open dialog using primefaces dialog framework in:

http://www.primefaces.org/showcase/ui/df/basic.xhtml

my jsf code:

<p:commandbutton icon="ui-icon-extlink" actionlistener="#{grabacionesservicios.vergrabacion}"></p:commandbutton> 

in grabacionesservicios managed bean following method:

public void vergrabacion() {     requestcontext.getcurrentinstance().opendialog("dialog_playgrabacion"); } 

amd dialog_playgrabacion.xhtml simple helloworld jsf page.

when click button opening dialog dialog_playgrabacion.xhtml contents next javascript error:

uncaught typeerror: this.jq.draggable not function 

in primefaces.js file.

i have read other post , found solution talk inserting following code in head section:

<h:outputscript library="primefaces" name="jquery/jquery-plugins.js"/> 

i have paste code in different locations same error.

when use developer tools in chrome , consult network activity see how jquery-plugins.js correctly downloaded seems downloaded after primefaces.js. perhaps error? how can force file downloaded before primefaces.js

can me please?

thanks!

my faces-config.xml:

<?xml version='1.0' encoding='utf-8'?> <faces-config version="2.2"           xmlns="http://xmlns.jcp.org/xml/ns/javaee"           xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"           xsi:schemalocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd">     <navigation-rule>     <from-view-id>*</from-view-id>     <navigation-case>         <from-outcome>inicio</from-outcome>         <to-view-id>/admin/inicio.xhtml</to-view-id>     </navigation-case>     <navigation-case>         <from-outcome>misdatos</from-outcome>         <to-view-id>/admin/mis_datos.xhtml</to-view-id>     </navigation-case>     <navigation-case>         <from-outcome>logout</from-outcome>         <to-view-id>/index.xhtml</to-view-id>     </navigation-case>     <navigation-case>         <from-outcome>agente-atiende</from-outcome>         <to-view-id>/admin/atencion/index-agente.html</to-view-id>     </navigation-case> </navigation-rule>  <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>  </faces-config> 


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -