Hi,

Thanks for your concern!!

Doesnt work here implies that , the javascript fails to be identified and
hence its not loaded.

Whereas when I remove "dependsOn(img.getFile()))" code snippet, it loads
fine, but without the image( which is required by the js file to work
functionally).

I am just trying to find out a way in which I can load the images related
to the js file using the above configuration, whether its feasible or not

Regards
Akshay

On Mon, Sep 22, 2014 at 11:49 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Mon, 22 Sep 2014 16:54:03 -0300, akshay <akshayestat...@gmail.com>
> wrote:
>
>  Hello,
>>
>
> Hi!
>
>  configuration.add("xyz", new JavaScriptModuleConfiguration(
>>         js).exports("variable").dependsOn(img.getFile()));
>>
>
> The dependsOn() method you called above doesn't not do what you think it
> does. It says a given RequireJS module depends on another. I'm not even
> sure what you're trying to do. Maybe the method you want is
> initializeWith(String expression). Are you trying to pass the image bytes
> to your JavaScript code? Or just its URL? If the latter, you need to inject
> Asset, not Resource, and use its toClientURL() method.
>
>  But it doesnt work. Any help would be highly appreciated.
>>
>
> Define "doesn't work". It's too vague. It says nothing about the result,
> so we have no information to help you.
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Cheers!!
Akshay

Reply via email to