JSF Primefaces从后台主动操作前台方法:
只需一行调用: RequestContext.getCurrentInstance().execute("history.go(-1)");
RequestContext.getCurrentInstance().execute("window.top.location.href='herf.xhtml'");
里面的方法可以是比如 dialog.show()
但是不能调用页面中javascript里面的函数
JSF Primefaces从后台主动操作前台方法:
只需一行调用: RequestContext.getCurrentInstance().execute("history.go(-1)");
RequestContext.getCurrentInstance().execute("window.top.location.href='herf.xhtml'");
里面的方法可以是比如 dialog.show()
但是不能调用页面中javascript里面的函数