Solved

GWT with JSP to avoid need for AJAX

Posted on 2006-10-30
3
1,702 Views
Last Modified: 2013-11-24
I have used GWT with AJAX when I need an interactive app. However, in some cases I don't need the app to communicate with the server after the page is initially displayed. For instance, I have a page where I'd like to display a collapsible tree. Normally I'd either have to output javascript in a JSP or I'd have to use GWT with a web service.

Is there any way to use GWT without a web service? For instance, instead of an HTML template, GWT would use a JSP that would populate data in the collapsible tree when the page is initially displayed.
0
Comment
Question by:HappyEngineer
3 Comments
 
LVL 5

Accepted Solution

by:
kannan_ekanath earned 500 total points
Comment Utility
I dont know GWT enough, but GWTs tree widget would definitely have options to store data in the client (Trust Google :) ). Check the doc for the tree widget for stuff like client side cachign etc. I have used similar libraries like Common Controls etc, where you have an option to cache the entire tree hierarchy in the client side or atleast parts of it.
0
 
LVL 35

Expert Comment

by:girionis
Comment Utility
> Is there any way to use GWT without a web service?

Yes, you can use it with servlets since GWT provides a basic RPC framework for making calls to the server.
0
 

Author Comment

by:HappyEngineer
Comment Utility
girionis, thanks for replying, but I meant that I wanted to use GWT without calling the server at all after the initial display of the page.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
java continue statement 10 71
Fibonacci challenge 11 82
groovy example issue 10 65
solarwind tftp server 2 30
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video teaches viewers about errors in exception handling.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now