简体   繁体   English

ADF-如何从命令按钮取消操作?

[英]ADF - How do I cancel an action from a commandbutton?

I need to be able to cancel navigation from the action method on a commandbutton if some validation fails? 如果某些验证失败,我是否需要能够从命令按钮上的操作方法取消导航? How do I cancel the action? 如何取消该动作?

Currently, the app notifies the user of the failed validation, but the navigation still continues to the next page. 当前,该应用程序将验证失败通知用户,但导航仍继续到下一页。

如本博客所述,同时使用actionListener和action: http ://andrejusb.blogspot.co.uk/2011/10/how-to-disable-action-conditionally.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM