Opened 10 years ago

Closed 10 years ago

#11335 closed Bug (expired)

AJAX submit and load/initialization of CKEditor fails in Struts 2 application using Struts jQuery plugin

Reported by: Ajay Owned by:
Priority: Normal Milestone:
Component: Server : Java Version:
Keywords: Cc:


  1. When the CKEditor is created in FORM and the form is submitted using struts jquery SUBMIT, data entered in the editor doesn't flow to struts ACTION. Pasting here code from the JSP that has the CKEDITOR control with AJAX submit
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib uri="" prefix="ckeditor" %>
<form id="commentForm">
                <s:textarea cols="40" id="someArea" name="someArea" rows="1"></s:textarea>
                <ckeditor:replace replace="someArea" basePath="${contextPath}/ckeditor/"/>

<s:url var="saveCommentVar" action="someAction" namespace="/someNamesapce"/>
<sj:submit name="submit" value="Submit" href="%{saveCommentVar}" formIds="commentForm" targets="successDiv"/>
<div id="successDiv"></div>
  1. When a JSP containg the CKEditor is loaded into main JSP using AJAX fails to initialize and it shows TEXTAREA control instead of the CKEDITOR.
    <s:url var="openJSPFrom1" action="someOpenJspAction" namespace="/someNamespace"/>
    <sj:a href="%{openJSPFrom1}" targets="topicCommentDiv">Click here</sj:a> to open CKEDITOR
    <div id="topicCommentDiv"></div>

Please let me know if more information is required.

Change History (4)

comment:1 Changed 10 years ago by Ajay

Component: GeneralServer : Java

comment:2 Changed 10 years ago by Ajay

I am using struts 2 JQuery pluin for Ajax

<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="sj" uri="/struts-jquery-tags" %>

comment:3 Changed 10 years ago by Piotrek Koszuliński

Keywords: Struts2 AJAX Struts2 JQuery removed
Status: newpending
Version: 4.3

Could you describe the issue without any additional server side code? We are not able to test a case which require setting up full environment. And it's also very hard to guess if the issue is in CKEditor or somewhere else if there's a lot more code involved than CKEditor only.

comment:4 Changed 10 years ago by Piotrek Koszuliński

Resolution: expired
Status: pendingclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy