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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T19:56:58+00:00 2026-05-18T19:56:58+00:00

Over the past 5 months we have been prototyping GWT and setting up the

  • 0

Over the past 5 months we have been prototyping GWT and setting up the infrastructure. WE are using GXT for the widgets with MVP and Command Pattern implementations. However, we are currently looking to do a spike on a ComboBox with autosuggest from a live Database. I would like to do this in the framework of the MVP and Command pattern implementations. Any one out there have any ideas how to go about doing this?

  • 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-18T19:56:58+00:00Added an answer on May 18, 2026 at 7:56 pm

    I solved that using a generic DispatchDataProxy modelled over the Command Pattern. Thanks for the link, but GXT documentation leaves a lot to be desired, though the framework is really nice and cool.

    I will post the code here `public class DispatchDataProxy implements DataProxy> {

    @Inject
    private DispatchAsync dispatch ;//= new StandardDispatchAsync(new DefaultExceptionHandler());
    
    @Override
    public void load(DataReader<ListLoadResult<X>> reader, Object loadConfig, final AsyncCallback<ListLoadResult<X>> callback) {
        if (loadConfig instanceof BasePagingLoadConfig) {
            BasePagingLoadConfig a = (BasePagingLoadConfig) loadConfig;
            Map<String, Object> map = a.getProperties();
            Object data = map.get("query");
    
            XCommand action = new XCommand();
            action.setX((String) data);
    
            dispatch.execute(action, new AsyncCallback<XResult>() {
    
                @Override
                public void onFailure(Throwable arg0) {
                    //Log.debug("Some error:" + arg0.getMessage());
                    callback.onFailure(arg0);
                }
    
                @Override
                public void onSuccess(XResult arg0) {
                    ListLoadResult<X> list = arg0.getList();
                    callback.onSuccess(list);
                }
            });
        }
    }
    
    public DispatchAsync getDispatch() {
        return dispatch;
    }
    
    public void setDispatch(DispatchAsync dispatch) {
        this.dispatch = dispatch;
    }
    

    }`

    Hope its useful. Will appreciate some comments as well

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

Sidebar

Related Questions

Over the past 5 months we have been prototyping GWT and setting up the
I have just started learning NHibernate. Over the past few months I have been
We have a web application which has been developed over the past 7 months.
I have been using Quartz.NET in my application a lot over the past few
Over the past couple of days I have been reading into using autotools to
I have been looking at monads a lot over the past few months (functors
Over the past 6 months I've been developing web sites using asp.net. When I
I've been learning about divs over the past few months, and am now able
There have been several questions over the past few days about the proper use
I recently launched a website I have been developing over the past year -

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.