Phil,
 
It was the script header as you suspected. Thanks!
 
-Amir

Philip Lopez <[EMAIL PROTECTED]> wrote:
in case this doesn't hit the list (e-mail address different).

---------- Forwarded Message ----------

Subject: Re: Problem using 'Script' component
Date: Wed, 9 Nov 2005 08:44
From: Philip Lopez 
To: "Tapestry users" 

Amir,

Couldn't quite tell from your output, but check that the script has the
following structure... notice the DOCTYPE ("script" and "3_0"). This is
working for me in 4.0beta12.

hth
- Phil

"-//Apache Software Foundation//Tapestry Script Specification 3.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd";>



        // functions



        // code to be run onload




On Wed, 9 Nov 2005 08:24, [EMAIL PROTECTED] wrote:
> Sorry,
>
> I forgot to mention that the script is located under the /WEB-INF
> directory.
>
> Thanks,
> Amir
>
> [EMAIL PROTECTED] wrote:
> 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:
>
> ...
>
>
>
>
>
>
> ...
>
> And my .page:
>
>
>
> ...
>
>
>
>
>
>
>
> Here is the excpetion:
>
> org.apache.hivemind.ApplicationRuntimeExceptionUnable to parse script
> context:/focus.script.location:context:/focus.script, line 4, column 61
> 1256 [input] 78function 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 1256
> [input] 78function setupFocus() {9${component}.focus();
>
> I am using Tapestry 4.0 beta 12.
>
>
>
> Thanks,
>
> Amir

-------------------------------------------------------

Reply via email to