Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9096855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:57:42+00:00 2026-06-16T23:57:42+00:00

Can anyone tell me how to use GWTquery along with GWT? The GWTquery tutorial

  • 0

Can anyone tell me how to use GWTquery along with GWT? The GWTquery tutorial page mainly deals with how to use jQuery, it doesn’t much explain how to embed it. If, for example, I want to use it with the default Stockwatcher app that comes with GWT, and use jQuery inside the java file just like the GWTquery tutorial says, where to install the jar file, and how to import it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T23:57:43+00:00Added an answer on June 16, 2026 at 11:57 pm

    GWTquery does not use jQuery, it is jQuery-like API implemented in GWT and it does not require jquery.js file inside GWT library or html host page, you can easily add its jar file like other gwt library:

    Maven Setup

    If you want to add GQuery on an existing maven project or you don’t want to use the maven archetype, you have simply to add the following lines in your pom.xml file :

     <dependencies>
       <dependency>
         <groupId>com.googlecode.gwtquery</groupId>
         <artifactId>gwtquery</artifactId>
         <version>1.1.0</version>
         <!-- If you are using old versions of gwt, uncomment the appropriate line -->
         <!-- <classifier>2.1.0</classifier> -->
         <!-- <classifier>2.0.1</classifier> -->
         <scope>provided</scope>
       </dependency>
     </dependencies>
    

    You could be interested in setting up your project by hand if you don’t want to use maven, or it is an already created project.
    First you’ll need to download the latest stable version of the gwtquery library related to your GWT version and place it in your classpath.
    If you’re an experienced GWT user, you probably already know how to do this, but if you’re a beginner, here’s a quick refresher.

    First, create a new project by running

    $GWT_HOME/webAppCreator gwtquery.sample.Sample
    

    which will create a bunch of files containing a sample project. Find the build.xml file and edit the section with id=”project.class.path” adding

    <pathelement location="PATH_TO_DOWNLOADED_gwtquery-1.0-SNAPSHOT.jar"/>
    

    If you’re using Eclipse, you may also want to edit the .classpath file and add the following:

    <classpathentry kind="lib" path="PATH_TO_DOWNLOADED_gwtquery-1.0-SNAPSHOT.jar"/>
    

    Next, edit the src/gwtquery/sample/Sample.gwt.xml file or your project’s existing module file, and add the following line to import GQuery into your GWT module:

    <inherits name='com.google.gwt.query.Query'/>
    

    Finally, in your module entry point class (e.g. src/gwtquery/sample/client/Sample.java) add the following import statements to make GQuery easy to use:

    import com.google.gwt.query.client.GQuery;
    import com.google.gwt.query.client.Function;
    import com.google.gwt.query.client.Selector;
    import com.google.gwt.query.client.Selectors;
    import static com.google.gwt.query.client.GQuery.*;
    import static com.google.gwt.query.client.css.CSS.*;
    

    More information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone tell me why the following page doesn't trigger an alert when it
I don't understand when should we use stream wrapper and socket. Can anyone tell
Can anyone please tell me when should I use MessageContracts and when should I
Can anyone please tell me is there any special requirement to use either EXTERN
Can anyone tell why my jQuery script is not loading here <?php wp_enqueue_script(jquery); ?>
Can anyone tell me when I should use either. For example, I think I
Can anyone tell me which one better to use for xml parsing - DOM
Can anyone tell me if they know how to use the Google Chart API
Can anyone tell me how to unify the font I use in all browsers
Can anyone tell me how can I make my SVN(TurtoiseSVN) to use the proxy?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.