Solved

GWT with JSP to avoid need for AJAX

Posted on 2006-10-30
3
1,704 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
ID: 17847766
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
ID: 17857379
> 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
ID: 17862946
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Setting strict transport security header in header not working 1 78
compre toata in where clue oracle 4 56
recursion example 16 111
oracle 11g 23 49
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

910 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

21 Experts available now in Live!

Get 1:1 Help Now