Re: including .js file which isn't in classpath in .script

2006-04-06 Thread Ashton Hepburn
Yes, as Andreas mentioned I am pretty sure this came into being with all the other niceties of 4.0.1: This works for me: .page/.jwc: Alternatively the following also works (under 4.0 and 4.0.1): .html: Ash

Re: including .js file which isn't in classpath in .script

2006-04-06 Thread Sam Gendler
and Jira appears to be down. On 4/6/06, Sam Gendler <[EMAIL PROTECTED]> wrote: > In fact, looking at the source code to Script.java, I'm not sure that > a sciprtAsset isn't supposed to be a .script file, anyway. In any > case, it is get a NullPointerException because the IScriptSource > object is

Re: including .js file which isn't in classpath in .script

2006-04-06 Thread Sam Gendler
In fact, looking at the source code to Script.java, I'm not sure that a sciprtAsset isn't supposed to be a .script file, anyway. In any case, it is get a NullPointerException because the IScriptSource object is null when you specify a scriptAsset, but it calls source.getScript() with the path of t

Re: including .js file which isn't in classpath in .script

2006-04-06 Thread Sam Gendler
This appears to be good advice - except that there seems to be a bug in the Script component. When I use a scriptAsset, it always errors out with a NullPointerException. # org.apache.tapestry.html.Script.getParsedScript(Script.java:135) # org.apache.tapestry.html.Script.renderComponent(Script.jav

Re: including .js file which isn't in classpath in .script

2006-04-05 Thread Andreas Andreou
Yep, i think this was added in 4.0.1 Ashton Hepburn wrote: >Using Tapestry4 you can use the Script component and specify the scriptAsset >parameter instead of scriptpath: > >http://jakarta.apache.org/tapestry/tapestry/ComponentReference/Script.html > >On 4/5/06, Sam Gendler <[EMAIL PROTECTED]> wr

Re: including .js file which isn't in classpath in .script

2006-04-05 Thread Ashton Hepburn
Using Tapestry4 you can use the Script component and specify the scriptAsset parameter instead of scriptpath: http://jakarta.apache.org/tapestry/tapestry/ComponentReference/Script.html On 4/5/06, Sam Gendler <[EMAIL PROTECTED]> wrote: > > I have to include a javascript file which must be located