Package nm.aleksey.shared

Examples of nm.aleksey.shared.AuthorContext.save()


        AuthorEditorWorkflow.this.author = author;
        // Start the edit process
        final AuthorContext context = getRequestFactory().authorRequest();
        // Display the UI
        edit(context);
        context.save(author);
        // context.addBook(author, null);
        // Configure the method invocation to be sent in the context
        // BookContext bookContext = getClientFactory().getRequestFactory()
        // .bookRequest();
        // final BookProxy book = bookContext.create(BookProxy.class);
View Full Code Here


  @UiHandler("addAuthorButton")
  void onAddAuthorButtonClick(ClickEvent event) {
    AuthorContext context = getRequestFactory().authorRequest();
    AuthorProxy author = context.create(AuthorProxy.class);
    context.save(author);
    getClientFactory().getEventBus().fireEvent(
        new EditAuthorEvent(author, context));
  }

//  @UiHandler("addBookButton")
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.