Opened 11 years ago
Closed 11 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: |
Description
- 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="http://ckeditor.com" prefix="ckeditor" %> <form id="commentForm"> <table> <tr> <td> <s:textarea cols="40" id="someArea" name="someArea" rows="1"></s:textarea> <ckeditor:replace replace="someArea" basePath="${contextPath}/ckeditor/"/> </td> </tr> </table> </form> <s:url var="saveCommentVar" action="someAction" namespace="/someNamesapce"/> <sj:submit name="submit" value="Submit" href="%{saveCommentVar}" formIds="commentForm" targets="successDiv"/> <div id="successDiv"></div>
- 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 11 years ago by
Component: | General → Server : Java |
---|
comment:2 Changed 11 years ago by
comment:3 Changed 11 years ago by
Keywords: | Struts2 AJAX Struts2 JQuery removed |
---|---|
Status: | new → pending |
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 11 years ago by
Resolution: | → expired |
---|---|
Status: | pending → closed |
I am using struts 2 JQuery pluin for Ajax