当我改变窗口或看到应用程序时,我一直试图执行一种方法,但是我无法让它进入方法。
@Named
@ViewScoped
@URLMapping(id = "registry.xhtml", pattern = "/trx/registry", viewId = "/bill/registry.page")
public class RegistryController implements Serializable {
@PreDestroy
public void cleanUp() {
//------method
}
}