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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:00:22+00:00 2026-05-28T02:00:22+00:00

so, just wondering if this is even possible i have been using the editor

  • 0

so, just wondering if this is even possible

i have been using the editor framework and am wondering if, instead of pushing the state of the object out to the ui using the edit calls – is there anyway you can take the state of the form and pump it into the object.

i am using a RequestFactoryEditorDriver with proxy objects and am trying to do something along the lines of a reverse-editor where i populate my proxy object with the values in the form and then persist it.

I am also new to GWT, i started 2 weeks ago and have been teaching myself off of various sample code and google, is there any other GWT framework to do this. or, what are the best practices when simply persisting new objects?

i am using activities/places and up until just tonight (i am trying to get something out quick so i know it wasn’t the correct way to do it) was passing in all the fields of the form through my presenter to create an object. i would like to do something cleaner.

any help is greatly appreciated


to anybody else doing this – thomas broyer answered it and here is how i got this
activity to work

public class EmployeesCreateFormActivity extends AbstractActivity implements EmployeesCreateFormView.Presenter

  interface EmployeeEditorDriver extends RequestFactoryEditorDriver<EmployeeProxy, EmployeesCreateFormView> {
  }

  private final ClientFactory clientFactory;
  private final EmployeesCreateFormView view;

  private EmployeeRequestContext employeeContext;
  private EmployeeProxy employee;
  private final EmployeeEditorDriver editor;

  public EmployeesCreateFormActivity(ClientFactory clientFactory) {
    this.clientFactory = clientFactory;
    view = clientFactory.getEmployeesCreateFormView();

    employeeContext = clientFactory.getRequestFactory().employeeContext();
    employee = employeeContext.create(EmployeeProxy.class);
    editor = GWT.create(EmployeeEditorDriver.class);
  }

  @Override
  public void start(AcceptsOneWidget container, EventBus eventBus) {
    view.setPresenter(this);
    container.setWidget(view.asWidget());
    editor.initialize(view);
    editor.edit(employee, employeeContext);
  }

  @Override
  public void doCreate() {
    editor.flush();
    // I STILL HAVE NO IDEA WHAT TO DO WITH THIS ????????
    employee.setVersion(Integer.valueOf(1));

    Request<EmployeeProxy> createRequest = employeeContext.persist(employee);
    createRequest.fire(new Receiver<EmployeeProxy>() {

      @Override
      public void onSuccess(EmployeeProxy response) {
        Window.alert("successfully created employee " + response.getId() + ": " + response.getFirstName());
        clientFactory.getPlaceController().goTo(new EmployeesCreatePlace());
        }
      });
    }
  });
}
  • 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-28T02:00:22+00:00Added an answer on May 28, 2026 at 2:00 am

    The way to do it is to edit() an empty object (e.g. one that you just created) when your activity starts (just like if you were editing an existing object), so that the flush() will populate the object with the fields’ values.

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

Sidebar

Related Questions

I'm just wondering if this is even possible; how to do non-complicated scripting within
Have been searching around and can't find the answer to this. I'm just wondering
I'm just wondering if this is possible, and if not, the best way to
Was just wondering if there was any software out there to do this? The
I was wondering if it is even possible to interact with other websites using
I am just wondering if it is possible to have a condition that passes
Wondering if this is even possible or a limitation of PHP, googling around seems
This is just something I've been thinking about and was wondering if it exists,
Just wondering if it is possible to have no animations in section when adding/removing
Just wondering is this kind of code recommended to increase performance? void functionCalledLotsofTimes() {

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.