There's no magic to this; just add jquery to the page as a javascript
include and then use JSNI to invoke various calls.

Here is a trivial example:

public static native Object query(String selector) /*-{
    return($(selector));
}-*/;

public static native void hide(Object target) /*-{
   target.hide();
}-*/;

public void javaTest() {
    Object objects = query(".mytarget");
    hide(objects);
}

If you want to have access to a more 'complete' jquery interface, you
can have a look at the GQuery project; you'll have to get the source
and rebuild it yourself, however, to use it with 2.0

~
Doug.

On Feb 9, 3:41 pm, muhannad nasser <[email protected]> wrote:
> Dear all;
>
> can u please tell me how to use jQuery in GWT... do i need to add something
> to xml files..... and how to call the jQuery functions
>
> thanks
>
> --
> ~~~With Regards~~~
> Muhannad Dar-Nasser
> ~~Computer Systems Engineering~~

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to