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

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

Introduction

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

Prototype

public final IModel<?> getInnermostModel() 

Source Link

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);
}