Hello.
I want to add an editor2 widget to my jsf facelets webpage and I decided to go for the manual html declarative way (not using the sandbox-taglib in myfaces) to add it.
I built a custom "binary" with the editor profile and added the resulting dojo.js and the src folder to my project in eclipse.
I then did a dojo.require("dojo.widget.Editor2"); in the head element.
and finally put this tag where I want my editor
this gives me an 'An invalid or illegal string was specified" code: "12' in Firebug. And the editor is not visible.
I have debugged dojo and found out that inside the method "dojo.html.createNodesFromText" the code breaks when it tries to add the content of the template "src/widget/templates/EditorToolbarOnline.html". to an divs innerHTML. Could it be some sort of charset error? I use UTF-8 in the containing xhtml file. The template file is loaded properly and is stored to a variable txt in the dojo source code.
thanks,
Fredrik

this is caused by facelets defaulting to contentType 'xhtml'
The error itself is caused by dojo trying to manipulate the domtree in a way that is not compliant with contentType xhtml
xhtml is default contenttype in facelets. You may override this by using:
<f:view contentType="text/html">Thank you very much for your
Thank you very much for your solution - it saved me a lot of time! I am new to Facelets and try to combine it with dojo and other javascript toolkits. That the manipulation of the domtree depends of the contenttype (text/html or xhtml) is new vulnaruble information to me.