PrimeFaces oncomplete backing method called on page load

一世执手 提交于 2019-12-02 03:52:11

oncomplete is a client-side javascript callback. Your methods get called when the page is rendered, because the server evaluates those EL expressions expecting them to result in strings with javascript code to send.

You probably don't need these oncomplete handlers at all. For the login button the action handler should be sufficient. For the fileUpload the fileUploadListener may be sufficient, if your goal is simply to "extract" the uploaded file as the method name suggests.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!