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