Hi,
I am new to Tapestry and I am having some problems with the Script component.
I get the an exception when I try to include a script.
Here is my .html:
...
<body jwcid="@Body">
<span jwcid="insertFocusScript"/>
</body>
...
And my .page:
<page-specification>
...
<component id="insertFocusScript" type="Script">
<binding name="script" value="literal:/focus.script"/>
<binding name="symbols" value="symbols"/>
</component>
</page-specification>
Here is the excpetion:
org.apache.hivemind.ApplicationRuntimeExceptionUnable to parse script
context:/focus.script.location:context:/focus.script, line 4, column 61
1<?xml version="1.0" encoding="UTF-8"?>2<!DOCTYPE page-specification
PUBLIC3"-//Apache Software Foundation//Tapestry Specification
4.0//EN"4"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">5<script>6<input-symbol
key="component" required="yes"/>7<body>8function setupFocus()
{9${component}.focus();
org.apache.tapestry.util.xml.DocumentParseExceptionUnable to parse
jndi:/localhost/ifd-dev/focus.script:
jakarta.apache.orglocation:context:/focus.script, line 4, column 61
1<?xml version="1.0" encoding="UTF-8"?>2<!DOCTYPE page-specification
PUBLIC3"-//Apache Software Foundation//Tapestry Specification
4.0//EN"4"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">5<script>6<input-symbol
key="component" required="yes"/>7<body>8function setupFocus()
{9${component}.focus();
I am using Tapestry 4.0 beta 12.
Thanks,
Amir