You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "F. Da Costa Gomez" <dc...@fixed.com> on 2003/06/02 22:40:28 UTC
Parse error on js.script file
Hi,
Following is a js function (with the // CULPRIT thing behind it) that
throws the parse error as shown below.
Whilst testing the script in HTML-Kit the line works fine.
Any suggestions?
I'll switch back to the other line but would prefer the error-throwing
one because it is faster (or so it is rumoured ;-) ).
TIA
Fermin DCG
function setChecked(uuid, isChk, leafs) {
for (n in leafs) {
leafs[n]=isChk;
doSingleChecked('', isChk, n);
if ( document.Form0 && document.Form0.elements[n] )
document.Form0.elements[n].checked=isChk; // CULPRIT
//if (! isUndefined(document.Form0.elements[n]))
document.Form0.elements[n].checked=isChk;
}
}
org.apache.tapestry.ApplicationRuntimeException
Unable to parse script
classpath:/net/sf/tacos/tree/components/TreeView.script.
component:
org.apache.tapestry.html.Script$Enhance_18@76f1f4[DCGTreeTest/treeView.javaScript]
location: classpath:/net/sf/tacos/tree/components/TreeView.script, line 76
org.apache.tapestry.ApplicationRuntimeException
Unable to parse script
classpath:/net/sf/tacos/tree/components/TreeView.script.
location: classpath:/net/sf/tacos/tree/components/TreeView.script, line 76
org.apache.tapestry.util.xml.DocumentParseException
Unable to parse classpath:/net/sf/tacos/tree/components/TreeView.script:
Illegal character or entity reference syntax.
documentLocation: classpath:/net/sf/tacos/tree/components/TreeView.script
location: classpath:/net/sf/tacos/tree/components/TreeView.script, line 76
org.xml.sax.SAXParseException
Illegal character or entity reference syntax.
columnNumber: -1
lineNumber: 76
systemId:
file:/C:/eclipse/workspace/t2/t2WebApp/WEB-INF/classes/net/sf/tacos/tree/components/TreeView.script
Stack Trace:
* org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
* org.apache.crimson.parser.Parser2.fatal(Parser2.java:3170)
* org.apache.crimson.parser.Parser2.maybeReferenceInContent(Parser2.java:2420)
* org.apache.crimson.parser.Parser2.content(Parser2.java:1833)
* org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
* org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
* org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
* org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
* org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
* org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
* org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
* org.apache.tapestry.util.xml.AbstractDocumentParser.parse(AbstractDocumentParser.java:230)
* org.apache.tapestry.script.ScriptParser.parse(ScriptParser.java:160)
* org.apache.tapestry.engine.DefaultScriptSource.parse(DefaultScriptSource.java:117)
* org.apache.tapestry.engine.DefaultScriptSource.getScript(DefaultScriptSource.java:104)
* org.apache.tapestry.html.Script.getParsedScript(Script.java:167)
* org.apache.tapestry.html.Script.renderComponent(Script.java:191)