Re: Ajax file manager 'CKFinder' and Wicket = 1.5.8

2012-10-26 Thread Steamus
Hi, Martin

Yesterday, I migrated to the Wicket 6.2.0 and it started working again! 

I didn’t see any messages about some javascript’s error in browser, but I
didn’t use any special tools to debug javascript.

Integration was enough easy, so there is not so much to share. They provide
several jars. One of them contains ConnectorServlet and FileUploadFilter. So
you need to put it into the web.xml

servlet
servlet-nameConnectorServlet/servlet-name
   
servlet-classcom.ckfinder.connector.ConnectorServlet/servlet-class
init-param
param-nameXMLConfig/param-name
param-value/WEB-INF/config.xml/param-value
/init-param
init-param
param-namedebug/param-name
param-valuefalse/param-value
/init-param
init-param
param-nameconfiguration/param-name
param-valuecom.app.CKFinderConfiguration/param-value
/init-param
load-on-startup1/load-on-startup
/servlet

servlet-mapping
servlet-nameConnectorServlet/servlet-name
url-pattern
/script/ckfinder/core/connector/java/connector.java
/url-pattern
/servlet-mapping

filter
filter-nameFileUploadFilter/filter-name
filter-classcom.ckfinder.connector.FileUploadFilter/filter-class
init-param
param-namesessionCookieName/param-name
param-valueJSESSIONID/param-value
/init-param
init-param
param-namesessionParameterName/param-name
param-valuejsessionid/param-value
/init-param
/filter

filter-mapping
filter-nameFileUploadFilter/filter-name
url-pattern
/script/ckfinder/core/connector/java/connector.java
/url-pattern
/filter-mapping

It is possible to provide own CKFinderConfiguration class with easy code:

public class CKFinderConfiguration extends Configuration
{
@Override
public String getBaseDir()
{
return Application.CONTENT_MEDIA_FOLDER;
}

@Override
public String getBaseURL()
{
return /app/media/;
}
}

And one line in the javascript to link script’s parts of CKEditor with
CKFinder:

CKFinder.setupCKEditor(null, '/app/script/ckfinder/');

 That’s it. And that starts working just after preparing. I changed Wicket
versions several times last year and it worked very well up to 1.5.8. And
starts working again from 6.2.0. 

Thanx in advance.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-file-manager-CKFinder-and-Wicket-1-5-8-tp4653275p4653381.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Ajax file manager 'CKFinder' and Wicket = 1.5.8

2012-10-26 Thread Martin Grigorov
Hi,

I think I know what broke it.
It should be fine in 1.5.9 again with
https://issues.apache.org/jira/browse/WICKET-4752

On Fri, Oct 26, 2012 at 12:35 PM, Steamus steam...@gmail.com wrote:
 Hi, Martin

 Yesterday, I migrated to the Wicket 6.2.0 and it started working again!

 I didn’t see any messages about some javascript’s error in browser, but I
 didn’t use any special tools to debug javascript.

 Integration was enough easy, so there is not so much to share. They provide
 several jars. One of them contains ConnectorServlet and FileUploadFilter. So
 you need to put it into the web.xml

 servlet
 servlet-nameConnectorServlet/servlet-name

 servlet-classcom.ckfinder.connector.ConnectorServlet/servlet-class
 init-param
 param-nameXMLConfig/param-name
 param-value/WEB-INF/config.xml/param-value
 /init-param
 init-param
 param-namedebug/param-name
 param-valuefalse/param-value
 /init-param
 init-param
 param-nameconfiguration/param-name
 param-valuecom.app.CKFinderConfiguration/param-value
 /init-param
 load-on-startup1/load-on-startup
 /servlet

 servlet-mapping
 servlet-nameConnectorServlet/servlet-name
 url-pattern
 /script/ckfinder/core/connector/java/connector.java
 /url-pattern
 /servlet-mapping

 filter
 filter-nameFileUploadFilter/filter-name
 filter-classcom.ckfinder.connector.FileUploadFilter/filter-class
 init-param
 param-namesessionCookieName/param-name
 param-valueJSESSIONID/param-value
 /init-param
 init-param
 param-namesessionParameterName/param-name
 param-valuejsessionid/param-value
 /init-param
 /filter

 filter-mapping
 filter-nameFileUploadFilter/filter-name
 url-pattern
 /script/ckfinder/core/connector/java/connector.java
 /url-pattern
 /filter-mapping

 It is possible to provide own CKFinderConfiguration class with easy code:

 public class CKFinderConfiguration extends Configuration
 {
 @Override
 public String getBaseDir()
 {
 return Application.CONTENT_MEDIA_FOLDER;
 }

 @Override
 public String getBaseURL()
 {
 return /app/media/;
 }
 }

 And one line in the javascript to link script’s parts of CKEditor with
 CKFinder:

 CKFinder.setupCKEditor(null, '/app/script/ckfinder/');

  That’s it. And that starts working just after preparing. I changed Wicket
 versions several times last year and it worked very well up to 1.5.8. And
 starts working again from 6.2.0.

 Thanx in advance.




 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Ajax-file-manager-CKFinder-and-Wicket-1-5-8-tp4653275p4653381.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Ajax file manager 'CKFinder' and Wicket = 1.5.8

2012-10-26 Thread Steamus
Seems, yes.

Because I didn’t check 1.5.9. I jumped to 6.1.1 and it didn’t work yet.

Thank you, Martin




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-file-manager-CKFinder-and-Wicket-1-5-8-tp4653275p4653383.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Ajax file manager 'CKFinder' and Wicket = 1.5.8

2012-10-24 Thread Martin Grigorov
Hi,

Looking at the changelog I don't see anything suspicious.

Did you check for JavaScript errors in Firebug/Dev tools ?
Can you share your code with us so we can see how you do the
integration and what could be the problem ?

On Tue, Oct 23, 2012 at 6:40 PM, Steamus steam...@gmail.com wrote:
 Hello, Everybody

 In my project I use JavaScript editor ‘CKEditor’ with Ajax file manager
 ‘CKFinder’. It worked fine a lot of months. But,
 just I migrated to version Wicket 1.5.8, the ‘CKFinder’ doesn’t work
 properly any more. There are no visible crashes or bugs, but It can’t upload
 file to server now. Looks like there were some little changes in the Wicket
 Ajax mechanic. If I switch to Wicket 1.5.7 it work fine as before. I was
 trying to migrate to Wicket 1.6.1. Project works fine, but ‘CKFinder’
 doesn’t work (the same as for 1.5.8).

 May be anybody has some idea what was changing in the 1.5.8 concerning Ajax
 or server response or…?

 I tested under Tomcat  6.0.35

 Thanx in advance.




 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Ajax-file-manager-CKFinder-and-Wicket-1-5-8-tp4653275.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Ajax file manager 'CKFinder' and Wicket = 1.5.8

2012-10-23 Thread Steamus
Hello, Everybody

In my project I use JavaScript editor ‘CKEditor’ with Ajax file manager
‘CKFinder’. It worked fine a lot of months. But,  
just I migrated to version Wicket 1.5.8, the ‘CKFinder’ doesn’t work
properly any more. There are no visible crashes or bugs, but It can’t upload
file to server now. Looks like there were some little changes in the Wicket
Ajax mechanic. If I switch to Wicket 1.5.7 it work fine as before. I was
trying to migrate to Wicket 1.6.1. Project works fine, but ‘CKFinder’
doesn’t work (the same as for 1.5.8).

May be anybody has some idea what was changing in the 1.5.8 concerning Ajax
or server response or…?

I tested under Tomcat  6.0.35

Thanx in advance.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-file-manager-CKFinder-and-Wicket-1-5-8-tp4653275.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org