【发布时间】:2017-12-11 14:37:59
【问题描述】:
我正在使用cdi-helpers 插件和我的UI 扩展ViewMenuUI。我有CDIViews 喜欢
OGSContractView
@UIScoped
@CDIView("Contract")
@ViewMenuItem(order = ViewMenuItem.DEFAULT, icon = FontAwesome.BANK)
public class OGSContractView extends CssLayout implements View{
// There's some UI Fields and some Functions to refresh the UI Fields
public void RefreshList(){...}
}
和
SchoolView
@UIScoped
@CDIView("School")
@ViewMenuItem(order = ViewMenuItem.DEFAULT, icon = FontAwesome.BANK)
public class SchoolView extends CssLayout implements View{
//Some UI and functions inside
//here, after some changes, I want to call a Refresh_Function
//from my OGSContractView class
someData.saveInDatabase();
ogsContractView.refreshList(); // here is my problem
}
在SchoolView 中,我正在更改数据库中的一些数据,之后我想调用OGSContractView.refreshList() 来更新那里的一些ui 字段。
我该怎么做?
【问题讨论】:
标签: java navigation vaadin cdi