2 Replies Latest reply: Aug 1, 2012 2:55 AM by gimbal2 RSS

    rich:editor no display when load with ajax

    953154
      I have editor.jsp file use component rich:editor:

      ....

      <rich:editor viewMode="visual"
      theme="advanced"
      value="#{c300Controller.CB317}" height="150" width="564">
      <jsp:include page="../../common/EditorComponent.jsp"></jsp:include>
      </rich:editor>
      ....

      when I call this file with link http://localhost:8084/editor.jsp it is ok...

      But when I load this file with ajax, it can't display editor
      example
      user fancybox
      <h:outputLink value="editReport.jsp?pv050=0&KeepThis=true&amp;TB_iframe=true&amp;height=453&amp;width=741&amp;modal=true" styleClass="fancybox add_new" >
      <span> <h:outputText value="Report"/></span>
      </h:outputLink>
      // it is ok if I config fancybox type is frame

      or I post with Jquery

      $.post("editor.jsp",function(data){
      if(data!=null) {
      object2.html(data);
      });

      PLEASE HELP ME.. THANKS ALL
      I found this link https://community.jboss.org/thread/14804 to fix problem but unsuccessful...