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

  • SEARCH
  • Home
  • 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 7668921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:28:45+00:00 2026-05-31T15:28:45+00:00

I am doing web application Project in GWT. I am using RPC, which is

  • 0

I am doing web application Project in GWT.
I am using RPC, which is working fine.

I have 4 packeages

  1. .client
  2. .client.GUI
  3. .client.control
  4. .shared
  5. .server

From .gui.loginpage

On onClickmethod of a button I make a object of Login Class which is in client.control

onSuccess of RPC public Boolean setConnection(true)

but when i try to getConnectionform .gui.loginpage its show me null.

because the call back function is executed asynchronously, the function is invoked after the response comes to the browser from the server.

But the other part of the code is executed immediately by which time connection is still null.

I need a solution or a method or any logic so that other function waits till the rpc call is complete.

  • 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-05-31T15:28:47+00:00Added an answer on May 31, 2026 at 3:28 pm

    It sounds like you are trying to use asynchronous communications synchronously. You must not process any thing else after you make the Async call. All logic you want to carry out post Async must go into the Async callback function, or another function that the Async callback calls. Just display a spinner and then finish up what you’re doing on Async response.

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

Sidebar

Related Questions

I've generated a new Web Application project using GWT 2.0.4. I replace the onModuleLoad()
I have a project (Web Application) which I have been developing in C#/ASP.NET, and
I am working on a web application project where the DAL is generated using
I'm doing a Web application using Spring 3.1.0.RELEASE, JSF 2.x, JPA 2 with Hibernate
I have a problem here. Right now I'm doing my Web Based Application, my
I have a web application that will be doing some processing with submitted data.
This is probably a basic question. I have two projects: A web application project,
Doing a code review I've stumbled over GWM in Java-Spring-GWT web-application. As this product
I have a java web application project with Spring framework in netbeans and I'm
I am using SignalR in an ASP.Net Web Application project and am having issues.

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.