Example usage for org.apache.wicket.markup.html WebMarkupContainer setDefaultModelObject

List of usage examples for org.apache.wicket.markup.html WebMarkupContainer setDefaultModelObject

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html WebMarkupContainer setDefaultModelObject.

Prototype

@SuppressWarnings("unchecked")
public final Component setDefaultModelObject(final Object object) 

Source Link

Document

Sets the backing model object.

Usage

From source file:org.devgateway.eudevfin.mcm.pages.EditNonFlowItemsPage.java

License:Open Source License

public void saveTransactionFromContainer(WebMarkupContainer container) {
    FinancialTransaction transaction = (FinancialTransaction) container.getInnermostModel().getObject();
    FinancialTransaction saved = financialTransactionService.save(transaction).getEntity();
    container.setDefaultModelObject(saved);
}