CKEditor not working - default.js not found

Community Driven Extensions Project
Post Reply
Earthnail
Posts: 15
Joined: 09 Mar 2012, 19:02

05 Apr 2012, 11:03

CKEditor from PF Extensions 0.4.0 does not load in PF 3.2 because javax.faces.resources/styles/default.js is not found. The link to this javascript is broken:

Code: Select all

http://localhost:8080/myproject/javax.faces.resourcehttp://localhost:8080/myproject/javax.faces.resourcestyles/default.js.xhtml?ln=primefaces-extensions&v=0.4.0
There also appears to be no default.js at all in neither primefaces-extensions-0.4.0.jar nor resources-ckeditor-0.4.0.jar
Primefaces 3.3 snapshot, JBoss 7.1

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

05 Apr 2012, 11:20

Works in the showcase:
http://fractalsoft.net/primeext-showcas ... cUsage.jsf

I also opened the jar and the default.js exists under /plugins/styles/styles.

Can you replicate it in showcase?

Can you try to clear your cache?
Also on localhost, you should have uncompressed resources. So could you try to debug into core.js -> CKEDITOR_GETURL?
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

05 Apr 2012, 11:22

Your URL

Code: Select all

http://localhost:8080/myproject/javax.faces.resourcehttp://localhost:8080/myproject/javax.faces.resourcestyles/default.js.xhtml?ln=primefaces-extensions&v=0.4.0
looks also strange. Do you use portlets?
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Earthnail
Posts: 15
Joined: 09 Mar 2012, 19:02

05 Apr 2012, 15:19

I haven't heard of portlets yet, and thus I don't think that I use them.

I use prettyfaces for URL rewriting. Maybe that is causing some problems.
Edit: I set up a simple example project without prettyfaces and I've got the same error there.

The default.js is indeed in /plugins/styles/styles in the resources-ckeditor-0.4.0.jar

Typing CKEDITOR_GETURL into the google chrome JS console gives me an error:
CKEDITOR_GETURL()
TypeError: Cannot call method 'indexOf' of undefined
Primefaces 3.3 snapshot, JBoss 7.1

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

05 Apr 2012, 21:10

Can you try without prettyfaces please? the resource should never be undefined also.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Tito
Posts: 10
Joined: 03 Feb 2012, 12:41

14 May 2012, 19:05

I have the same issue.

Setup:
Mojorra 2.1.6
PF 3.2
PFE 0.4.0
prettyfaces 3.3.0

is there a work around?

regards

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

14 May 2012, 20:06

if you could send me an simple example project, then i could try to reproduce it. I think it's related to prettyfaces.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

3vi
Posts: 27
Joined: 30 Nov 2011, 17:41

19 Jun 2012, 09:50

In a new maven project, with only primefaces jar e mojarra jar, all work fine, and the link for skin is:

Code: Select all

http://localhost:8080/test1/javax.faces.resource/ckeditor/skins/kama/editor.css.xhtml?ln=primefaces-extensions&v=0.3.0
In the other project, that have some problem, the link for skin is:

Code: Select all

http://localhost:8080/test2/javax.faces.resource/ckeditor/skins/kama/&v=0.3.0&v=0.3.0&v=0.3.0
Any idea?
Last edited by 3vi on 19 Jun 2012, 15:32, edited 1 time in total.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

19 Jun 2012, 10:12

Not really, please try to reproduce it with a small test project. Maybe it occurs with some web.xml or some libs like prettyfaces, don't know.
If you can reproduce, i can help you to fix it :)
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

19 Jun 2012, 11:13

Hi 3vi, Earthnail and other,

As Thomas already said, we can only tell you the reason if you say us:

1) Do you use other third-party libs, especially PrettyFaces, Spring WebFlow or similar? What is your environment? Thomas asked this many times, but nobody told us something regarding this!
2) Can you send us a small project which we can deploy on Tomcat e.g. and reproduce this issue?

Note: CKEditor and CodeMirror load some resources dynamically, so that we could debug this of course. But we need a small test project.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests