3 Replies Latest reply on Nov 15, 2012 10:33 AM by simon_brodtmann

    rich:editor - richfaces 4.1.0.Final

    yuancamo

      Hi,

       

      I have a problem with the editor component. I've already deployed the application but when I open the page with the editor the browser show a js exception: m.lang.contextmenu is undefined.

       

      I'm using weblogic 10.3.5 and richfaces 4.0.1.Final

       

      P.D.: Happy christmastide

        • 1. Re: rich:editor - richfaces 4.1.0.Final
          yuancamo

          When you working with Servlet 2.5 and older environments, it is necessary to register this servlet manually in web.xml:


          <servlet>

             <servlet-name>Resource Servlet</servlet-name>

             <servlet-class>org.richfaces.webapp.ResourceServlet</servlet-class>

             <load-on-startup>1</load-on-startup>

          </servlet>



          <servlet-mapping>

             <servlet-name>Resource Servlet</servlet-name>

             <url-pattern>/org.richfaces.resources/*</url-pattern>

          </servlet-mapping>
          • 2. Re: rich:editor - richfaces 4.1.0.Final
            simon_brodtmann

            I have the same problem, but I have a 3.0 Servlet.

             

            The problem is, that the editor loads the files from the wrong location:

            "NetworkError: 404 Not Found - http://localhost:8080/ClearTest/skins/richfaces/editor.ecss?t=B7U9"

             

            The ckeditor.js is successfully loaded from that url:

            /ClearTest/javax.faces.resource/ckeditor.js.html?ln=org.richfaces.ckeditor

             

            I don't really get it. Why does this not work out of the box? What do I have to change to make that working? Do I need to download any additional files?

            I searched the web for over an hour, but I didn't find any usefull answers.

             

            I use RichFaces 4.2.3.

             

            Can anyone help me?

             

            Thanks.

            • 3. Re: rich:editor - richfaces 4.1.0.Final
              simon_brodtmann

              Suddenly the editor appeared. But only after I visited the page twice without restarting the server. Now it works all the time. I didn't change anything.