在jsf中使用括号和不带括号调用bean方法之间的区别? [英] Difference between calling back bean method using parenthesis and without parenthesis in jsf?
本文介绍了在jsf中使用括号和不带括号调用bean方法之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
两者之间有什么区别
<h:commandLink actionListener="#{serviceProviderBean.method}" value="Save" />
和
<h:commandLink actionListener="#{serviceProviderBean.method()}" value="Save" />
都调用相同的方法或以上代码中的任何错误
is both invoke same method or any error in above code
推荐答案
第二个在tomcat6下不起作用,它将在tomcat7/jSF2下工作
Second will not work under tomcat6, it will work with tomcat7/jSF2
这篇关于在jsf中使用括号和不带括号调用bean方法之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文