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
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.