javascript - primefaces codeMirror doesn't load his own css and js -


I want to use codeMirror from primeface-extension with sql syntax.

I have a 404 error when the page that contains this component loads. CSS and JavaScript components were not found.

My code is similar to the example from the showcase-extract code mirror.

Using PrimFace 5.1 and PrimefaceAut 2.1.0.

Does anyone have this problem?

Thanks in advance.

Edit:

My JSF:

  & lt; Pe: codeMirror id = "codeMirror" value = "# {sandboxBean.content}" line number = "true" /> & lt; P: Command button Action Listener = "# {Sandbox Bean} changeMode}" Update = "Code Mirror" value = "Change mode with AJAX" style = "margin-top: 10px;" />  

My Bean:

  Private string content; Private string mode = "javascript"; Public zero change mode () {if (mode.equals ("css")) {mode = "javascript"; } And {mode = "CSS"; }} Public listing & lt; String & gt; Complete (Last Full Event Event) {Last Array List & lt; String & gt; Suggestion = New Arrestist & lt; String & gt; (); Suggestions.add ("Reference:" + event.getContext ()); Suggestions.add ("token:" + event.getToken ()); Return suggestion; } Public string getContent () {return content; } Public Zero Set Content {Last String Content} {this.content = content; } Public string getMode () {return mode; } Public Zero set mode (last string mode) {this.mode = mode; }  

Error on my browser console: CSS and Primes for Component for JS 404 (Insrauble).

Other prime components load the components correctly, so I do not understand

Why do not I have this?

The same error has been encountered and it has succeeded in working to add resources to its pom.xml resources-coder dependency

  & lt; Dependency & gt; & Lt; Group & gt; Org.primefaces.extensions & lt; / Group & gt; & Lt; ArtifactId & gt; Primefaces-extension & lt; / ArtifactId> & Lt; Version & gt; 3.2.0 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.primefaces.extensions & lt; / Group & gt; & Lt; ArtifactId & gt; Resources- CodeMirror & lt; / ArtifactId> & Lt; Version & gt; 1.2.1 & lt; / Edition & gt; & Lt; / Dependencies & gt;  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Algorithm negotiation fail SSH in Jenkins -

java - Messages from .properties file do not display UTF-8 characters -