On Mon, 16 Jun 2014 20:01:48 -0300, Sanket Sharma <sanketsha...@gmail.com> wrote:

javaScriptSupport.require("openstreetmaps").invoke("registerAddressChangeListener").with(clientElement.getClientId());

I'do do this instead:

javaScriptSupport.require("openstreetmaps").with(clientElement.getClientId());


define('openstreetmaps', [ 'open-layers', 'jquery', 't5/core/console' ],
        function(openLayers, $, console, id) {
        registerAddressChangeListener(id);

        // function declarations here

}

No need to call an specific method from JavaScriptSupport.

Anyway, I'd guess your problem with the code as you posted here is in the AMD module side, maybe not exporting the function you want to call.

--
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

Reply via email to