0 Replies Latest reply on Jul 25, 2011 10:02 PM by wangliyu

    Richfaces4 ajax load script failed

    wangliyu

      Hi,

      I'm using Richfaces4.0.Final and JSF2.0.4.b09 right now, I have page having the following piece of code, it dynamiclly render the table if the #{beanA.renderTable} is true.

       

      <a4j:outputPanel id='table' ajaxRender="true">

      ...

      <rich:extendedDataTable id="cashBoxTable" rendered="#{beanA.renderTable}" ...>

      ...

      </rich:extendedDataTable>

      </a4j:outputPanel>

       

      This is not working, the problem is the generated html try to call function in extendedDataTable.js.jsf, and the resources is not loaded. and browser return the object is undefined.

       

      I tried the richfaces3 options:

       

      <context-param>
      <param-name>org.richfaces.LoadStyleStrategy</param-name>
      <param-value>ALL</param-value>
      </context-param>

       

      <context-param>
      <param-name>org.richfaces.LoadScriptStrategy</param-name>
      <param-value>ALL</param-value>
      </context-param>

      It still doesn't work.

       

      Does anyone know how to handle this problem?

      Thanks a lot