使用该方法跳转界面,并设置跳转到的界面为只读
在要显示的界面里处理,关键代码如下:
@Override
public void ready() {
super.ready();
if (isReadOnly) {
for (Component component : getOwnComponents()) {
if (component instanceof Editable) {
((Editable) component).setEditable(false);
}
}
}
}
详细讨论请参考这个帖子:
https://www.cuba-platform.com/discuss/t/view-action-from-browse/7653/3