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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:37:53+00:00 2026-06-01T03:37:53+00:00

I have a Smart GWT Project where the data that is to be displayed

  • 0

I have a Smart GWT Project where the data that is to be displayed on screen, is stored in a class that is shared by client and server.

I read some docs at the Smart GWT website where they have explained how to connect to XML or JSON data sources.

What I want to do is link my POJO with the Smart GWT widget.

And the data is available client-side, so the server-side data communication component of Smart GWT(Which is only available in paid editions)is not needed.

What is the recommended way to go about implementing this? Are there any best practices while doing this? And am I correct in assuming that I can do the above with the Free edition of Smart GWT?

  • 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-01T03:37:54+00:00Added an answer on June 1, 2026 at 3:37 am

    You must manually add a POJO’s fields to attributes of record. We can not simply pass the object as a value in grid. I did it so:

    greetingService
                .getUsersList(new AsyncCallback<ArrayList<UserForRPC>>() {
                    public void onFailure(Throwable caught) {
                    }
                    public void onSuccess(ArrayList<UserForRPC> result) {
                        ListGridRecord[] listUsers = new ListGridRecord[result.size()];
                        int recordNum = 0;
                        for (UserForRPC user : result) {
                            ListGridRecord record = new ListGridRecord();
                            record.setAttribute("id", user.getId());
                            record.setAttribute("firstName", user.getFirstName());
                            record.setAttribute("lastName", user.getLastName());
                            record.setAttribute("login", user.getLogin());
                            record.setAttribute("password", user.getPassword());
                            record.setAttribute("email", user.getEmail());
                            record.setAttribute("role", user.getRole());
                            record.setAttribute("organization", user.getOrganization());
                            listUsers[recordNum++] = record;
                        }
                        usersGrid.setData(listUsers);
                    }
                });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a GWT project that has some menu items. These menu items
Hi I use GWT and I have a com.smartgwt.client.widgets.Button that has the following eventHandler:
I have read a lot of gwt-mvp questions that are asked here, but since
I have a basic GWT Maven project going. I added SmartGWT and started playing
I have a smart client application being deployed with a CickOnce webpage. here's the
I have a list of smart pointers. I want some of these smart pointers
I have a project which fully designed for smart phone and now, I need
i have this class called MemoryManager, it is supposed to implement a simple smart
I have a GWT page where user enter data (start date, end date, etc.),
I have a grails project and I use the gwt plugin 0.6.1. GWT version

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.