问题描述
我希望在点击字段上的 Tab 后触发验证.问题是每次我点击空字段时,它都会对所有行进行验证.这会导致错误,因为表中的其他现有行不在验证范围内.我正在使用 back bean 函数,并且可以看到每次我点击空字段时都会调用验证.我认为这与启用自动提交有关,但我还能如何在选项卡上进行验证?
I want a validation to fire after hitting tab on a field. The thing is every time I click on the empty field it runs the validation to all rows. Which causes errors because the other existing rows in the table aren't in the scope of the validation. I am using a back bean function to and can see the validation is called everytime I hit the empty field. I think this has to do with autosubmit being on but how else can I validate on a tab?
推荐答案
我不知道这会回答你的问题,但可能是一个开始:
I don't know that this will answer your q's but might be a start:
http://www.slideshare.net/stevendavelaar/18-invaluable-lessons-about-adfjsf-interaction
https://docs.oracle.com/cd/E15586_01/web.1111/b31973/af_validate.htm
https://rohanwalia.blogspot.com/2013/10/client-side-validation-in-adf-faces.html
https://www.jobinesh.com/2009/08/how-to-skip-validation.html
此外,如果您从事 ADF 工作,请务必阅读 Jobinesh 的书,因为它涵盖了许多深入的内容:https://www.barnesandnoble.com/w/oracle-adf-real-world-developers-guide-jobinesh-purushothaman/1111982100
Also, if you're doing ADF work definitely get Jobinesh's book as it covers many things in depth: https://www.barnesandnoble.com/w/oracle-adf-real-world-developers-guide-jobinesh-purushothaman/1111982100
还要考虑 ADF Cookbook.
Also consider ADF Cookbook.
这篇关于使用 Tab 键切换 Oracle ADF 时在所有行上运行验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!