, when I visit the j" />
您好,欢迎来到[编程问答]网站首页   源码下载   电子书籍   软件下载   专题
当前位置:首页 >> 编程问答 >> Java >> A question about JSF

A question about JSF

来源:网络整理     时间:2016/7/4 18:38:26     关键词:

关于网友提出的“ A question about JSF”问题疑问,本网通过在网上对“ A question about JSF”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: A question about JSF
描述:

Recently I am studying the JSF codes.
But I encounter a problem about the basis of JSF.
In a xhtml file I saw others write  , when I visit the jsf page, it generates HTML code which is 
I know the tag  of JSF means  of HTML.
But the problem is how it defines the action???   in the  there is no definition about the form's action and the enctype attribute.   I try to find if it is defined in the web.xml or 
faces-config.xml..   But I can't find any.
Ask some sophisticated professionals for help me solve this problem..!
Thanks.


解决方案1:

两个form,上面一个form里
       valueChangeListener="#{staff.toggleLanugage}" >
注意这句里的valueChangeListener,也就是当值改变的时候,实时触发监听器来进行一些动作,这里就是实时改变页面的语言
下面一个form是普通form,不需要解释了吧?


以上介绍了“ A question about JSF”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/2279518.html

相关图片

相关文章