I was able to get this working using

@Environmental
    private JavaScriptSupport jsSupport;

public void setupRender() {
        jsSupport.require("etss_custom");
    }

I'm wondering if there is a better way to set up my scripts than this? I
don't anything about stacks, but should I learn and is that a better
approach?


On Thu, Sep 26, 2013 at 2:54 PM, George Christman
<gchrist...@cardaddy.com>wrote:

> Hello, I seemed to be really confused on how to use a custom js file in
> Tap5.4. I use to use @Import which no longer appears to fire.
>
> I then decided to try and use require js and still can't get tapestry to
> load my script.
>
> I have the following config,
> src/main/resources/META-INF/modules/test.js
>
> very simple js
>
> define(["./jquery"], function( $) {
>
>   int = function() {
>       alert('test');
>   };
>
>   return int;
>
> });
>
> I'm assuming I'm missing the part where tapestry calls the script, does
> anybody know what I'm missing?
>
>
>


-- 
George Christman
www.CarDaddy.com
P.O. Box 735
Johnstown, New York

Reply via email to