I have a function defined in a .js file, which is included in the main .html file with this code:
<script type="text/javascript" language="javascript"
src="js/script.js"></script>
I also have a JSNI method that invokes a function that is defined in the js file:
public native void addJsModule(String name) /*-{
addNewSection(name);
}-*/;
When I invoke the java method, I get this exception:
com.google.gwt.event.shared.UmbrellaException: Exception caught: Exception caught: (ReferenceError) @client.registros.home.RegistyHome::addJsModule(Ljava/lang/String;)([string: 'acercade']): addNewSection is not defined
Thanks!!