Hello,
I have been trying to get the FCKeditor working in a ICEFaces java project (.xhmtl facelets).
The editor is working, but when I try to upload an image, it hangs on the upload status window.
I have followed the steps in the java integration manual (connector servlet, log, web.xml, ...) but still can not get this to work.
Can anybody help me with this?
Thx,
Stef
I have been trying to get the FCKeditor working in a ICEFaces java project (.xhmtl facelets).
The editor is working, but when I try to upload an image, it hangs on the upload status window.
I have followed the steps in the java integration manual (connector servlet, log, web.xml, ...) but still can not get this to work.
Can anybody help me with this?
Thx,
Stef
Re: FCKeditor in ICEFaces
Re: FCKeditor in ICEFaces
Is this normal?
Thx,
Stef
Re: FCKeditor in ICEFaces
Re: FCKeditor in ICEFaces
<div id="divUpload" style="display: none">
<form id="frmUpload" method="post" target="UploadWindow" enctype="multipart/form-data"
action="" onsubmit="return CheckUpload();">
<span fcklang="DlgLnkUpload">Upload</span><br />
<input id="txtUploadFile" style="width: 100%" type="file" size="40" name="NewFile" /><br />
<br />
<input id="btnUpload" type="submit" value="Send it to the Server" fcklang="DlgLnkBtnUpload" />
<script type="text/javascript">
document.write( '<iframe name="UploadWindow" style="display: none" src="' + FCKTools.GetVoidUrl() + '"><\/iframe>' ) ;
</script>
</form>
</div>
The action element is empty. Is this normal?
Thx,
stefan
Re: FCKeditor in ICEFaces
Re: FCKeditor in ICEFaces
Still struggling with this one.
For some reason the request is not routed to the connector servlet, even though it is defined like that in the web.xml.
…
<servlet>
<servlet-name>ConnectorServlet</servlet-name>
<servlet-class>net.fckeditor.connector.ConnectorServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
…
<servlet-mapping>
<servlet-name>ConnectorServlet</servlet-name>
<url-pattern>/editor/filemanager/connectors/*</url-pattern>
</servlet-mapping>
…
The request that is going over the wire is:
http://localhost:8080/editor3/block/res ... Type=Image
But still the php version is being invioked…..
Any idea what I am doing wrong?
Many thanks,
Stefan
Re: FCKeditor in ICEFaces
Hi Stefan,
no PHP version is invoked. You have to read the docs more precisely. It says:
Re: FCKeditor in ICEFaces
with fiddler i can see the php connector content coming back.
The problem is that for some reason this request is being routed to the blocking servlet. the /block/ part in the url is beeing added automatically.
Probably an ICEFaces issue, will have to give it up and look for another editor. shame though, as the FCK one looked promising.
thanks for your support,
stef
Re: FCKeditor in ICEFaces
Re: FCKeditor in ICEFaces
finally got it working in ICEFaces
the problem seems to be related to the way the url is composed.
I have now done this like: FCKConfig.ImageUploadURL = location.protocol + "//" + location.host + "/ede...
instead of using the FCKConfig var. (this was passed thru the blocking servlet for async processing.....)
Problem solved!
Thx,
stef