Wohoooooooooo, it's working now!!! Thank you so much!

[SOLVED]


On 21 Apr., 17:21, olivier nouguier <olivier.nougu...@gmail.com>
wrote:
> replace:
> com.google.gwt.client.Index::createPopup()()
> by
> website.client.Index::createPopup(I)(i);
>
> Which seem to be your client package ...
>
>
>
> On Tue, Apr 21, 2009 at 5:10 PM, Chuck <kurtz.lu...@cyber-art.ch> wrote:
>
> > Yes, you're right, thank you. Unfortunately this didn't solve the
> > problem. I got an error now:  "Unresolvable native reference to type
> > 'com.google.gwt.client.Index'"
>
> > Do you know how to reference my own class? Do I have to include the
> > name of the package?
>
> > On 21 Apr., 16:52, olivier nouguier <olivier.nougu...@gmail.com>
> > wrote:
> > > Hi,
> > > Your java function should receive an int as parameter ... Nope ?
>
> > > On Tue, Apr 21, 2009 at 4:32 PM, Chuck <kurtz.lu...@cyber-art.ch> wrote:
>
> > > > Hi there!
>
> > > > Unfortunately my popup function is not working and I think that I
> > > > found the reason. Please have a look at the JS code, could it be that
> > > > "com.google.gwt.client.Index::createPopup()();" is wrong? How can I
> > > > find out what the real path is of my class called Index? Can anybody
> > > > help? It works without any error messages but the GWT function is
> > > > never executed.
>
> > > > My Java code:
>
> > > > package website.client;
>
> > > > import com.google.gwt.core.client.EntryPoint;
> > > > import com.google.gwt.user.client.Window;
>
> > > > /**
> > > >  * Entry point classes define <code>onModuleLoad()</code>.
> > > >  */
> > > > public class Index implements EntryPoint {
>
> > > > // EntryPoint!
> > > >  public void onModuleLoad() {
>
> > > >        // Für JavaScript Interface
> > > >        setShowTrigger(this);
>
> > > >  }
>
> > > >  public native void setShowTrigger(Index x) /*-{
> > > >        $wnd.runApp = function () {
> > > >        x...@com.google.gwt.client.index::createPopup()();
>
> > > >        };
>
> > > >  }-*/;
>
> > > >  public void createPopup(int i) {
>
> > > >          Window.alert("I'm a GWT function");
> > > >  }
> > > >  }
>
> > > > My HTML code:
>
> > > > <input type="button" onclick="runApp()" text="click me" value="Test
> > > > me"/>
>
> > > > Thanks in advance for helping me!!!
>
> > > --
> > >    “There are two ways of constructing a software design: One way is to
> > make
> > > it so simple that there are obviously no deficiencies, and the other way
> > is
> > > to make it so complicated that there are no obvious deficiencies. The
> > first
> > > method is far more difficult.”
>
> > >    Sir Charles Anthony Richard Hoare
>
> --
>    “There are two ways of constructing a software design: One way is to make
> it so simple that there are obviously no deficiencies, and the other way is
> to make it so complicated that there are no obvious deficiencies. The first
> method is far more difficult.”
>
>    Sir Charles Anthony Richard Hoare
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to