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 464277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:15:33+00:00 2026-05-12T23:15:33+00:00

Still wresting with GWT and App Engine, and I have come to this problem:

  • 0

Still wresting with GWT and App Engine, and I have come to this problem:

I have an app engine populated with various data, which I would like to present on the client using a GWT RPC.

I have found out the hard way that, because my Model objects are annotated with JDO, i can’t just send them back to the client because they aren’t serializable. This means I’m going to have to create a layer of intermediate classes to extract data from my model objects, and send it back to the client to use asynchronously.

I am wondering though, it is possible to construct a GWT object in a servlet and send it back to be used? For example, the servlet would be receive my asynchronous request, pull out the data i want from the database, create a GWT VerticalPanel() with appropriate child elements for the data, and send that VerticalPanel back to the client to be injected.

My understanding of the Java / Javascript interaction that is going on here is still foggy, and I’m thinking that sending a Java object that is not compiled to Javascript after the application is deplyed will not work. Can anybody clarify this for me?

  • 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-12T23:15:33+00:00Added an answer on May 12, 2026 at 11:15 pm

    No the server can’t create GWT UI objects (like vertical panels) to be used in the presentation layer, nor should it, that’s why it’s called a ‘server’ and a ‘presentation layer’ one serves the data and handles all the business logic, the other displays things on a screen and allows a user to interact with them.

    You can however send your JPA annotated POJO’s to the front end just fine (we do it in all our applications). You simply need to include the source code for the annotations themselves so that GWT knows how to compile them. You also need to make sure your POJOs’s are in a package that is referenced by a NameOfXmlFile.gwt.xml file, eg:

    <module>
        <inherits name='com.google.gwt.user.User'/>
        <source path="domain" />
    </module>
    

    This file in my case is in a folder above a package called ‘domain’ where all my JPA annotated POJO’s live. Then in your client side you tell it to inherit that .gwt.xml file:

    <module>
            <inherits name='com.google.gwt.user.User'/>
            <!-- Domain layer references -->
            <inherits name='your.package.structure.NameOfXmlFile'/>
    </module>
    

    There are restrictions on what you can put in those classes (like for example BigDecimal is not supported, etc) but anything that can be compiled by the GWT compiler (and JPA annotations certainly can be) can be sent without needing any kind of transfer objects. This is one of the real strengths of GWT, that you can use the same JPA Pojos in your entire application, without ever needing to create any other similar object.

    Edit: I just noticed you said JDO and not JPA. I assume the same applies there as well though if they are just annotations?

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

Sidebar

Related Questions

I still have a problem with the splash screen. I don't want to use
Still learning JSP Web Applications here. I have been doing this for a while
still working on this system call!!! i have added a system call to a
still trying to find where i would use the yield keyword in a real
I still very new using Subversion. Is it possible to have a working copy
I still have a large number of floppies. On some of them there probably
I hope this question does not come off as broad as it may seem
Still really struggling with this and appear to be going round in circles. I
I still learning Ruby on Rails, but have been wondering what happens if I
Still having trouble can you please help? This needs to be written in Visual

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.