I have a JSF application, in which a RichFaces modal panel is shown using a4j:status
while an ajax request is being handled by my backing bean. I want to put a cancel button on the modal panel so a user can interrupt the request.
What is the best way to do this? I'm thinking of something like having the cancel a4j:commandButton
call an action on the bean to run FacesContext.getCurrentInstance().renderResponse()
but not sure that's wise.
Thanks
一种方法是,在ajax调用过程中,正在执行的托管Bean(即服务器端)中的执行方法必须以一种可以被中止的方式编写,以便它仅返回从而结束请求。这也将保持正确的服务器端状态。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.