java - Primefaces: adding growl into my view -


i'm implementing web app using primefaces components in view part. problem comes when want use < p:growl > anywhere, have error when page loaded. firebug says: "widget_j_idt25_headlogin_messages not defined". looks when primefaces generated, javascript trying use component, finds it's not defined.

however, when remove tag works , jsf error messages displayed. i'm using primefaces 3.1.1 library, ideas how solve issue?

here you've code:

<?xml version='1.0' encoding='iso-8859-15' ?> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui" xmlns:ui="http://java.sun.com/jsf/facelets">  <h:form id="download_manager_form">      <p:growl id="messages" />      <p:ajax event="click" update="messages"/>      <p:datatable value="#{downloadmanagerbean._tablebean._list}"         var="download" style="width:100%">         <f:facet name="header">             <h:outputtext value="#{msg.download_manager_title}" />         </f:facet>         <p:column sortby="#{download._filename}"             filterby="#{download._filename}"             headertext="#{msg.file_path_download}">             <p:commandlink                 actionlistener="#{downloadmanagerbean.actiondownload}">                 <h:outputtext value="#{download._filename}" />                 <f:param name="id" value="#{download._id}" />             </p:commandlink>         </p:column>         <p:column sortby="#{download._overduedate}"             filterby="#{download._overduedate}"             headertext="#{msg.overdue_date_download}">             <h:outputtext value="#{download._overduedate}" />         </p:column>         <p:column sortby="#{download._created}"             filterby="#{download._created}" headertext="#{msg.file_created}">              <h:outputtext value="#{download._created}" />         </p:column>         <p:column sortby="#{download._filesize}"             filterby="#{download._filesize}" headertext="#{msg.file_size}">             <h:outputtext value="#{download._filesize}" />         </p:column>      </p:datatable> </h:form> 

solved. had h:head tag missing in main page! way, it's not necessary update growl component, without declaring autoupdate, it's enough add faces message faces context in server side!!


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -