2 Replies Latest reply on Nov 22, 2012 2:36 PM by jmiguel77

    Problem with a dynamic RichFaces editor

    jmiguel77

      I am trying to dynamically include a RichFaces editor in a xhtml page.

       

      I am getting this javascript exception:

       

      RichFaces.ui.Editor is not a constructor

       

      That is because the javascript files for the editor is not loaded. But the thing is that i include this in my web.xml:

       

      <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>

       

      but the result is the same, the editor script is not loaded. I read somewhere that this parameters have been changed, and tried this also:

       

      <context-param>

           <param-name>org.richfaces.resourceMapping.compressedStages</param-name>

           <param-value>All</param-value>

      </context-param>

      <context-param>

           <param-name>org.richfaces.resourceMapping.packedStages</param-name>

           <param-value>All</param-value>

      </context-param>

       

      but still the same problem

       

      Is there any other solution ?? can i add the editor script somehow ???