h:commandbutton类型之间的区别究竟是什么? [英] What's exactly is the difference between types of h:commandbutton?
问题描述
您好,我有一个问题,我总是想问。我正在谈论不同类型的类型
标签。我稍微阅读了一些内容,但大多数页面只有不同标签的名称,没有其他内容。这种CommandButton的范围是什么, forms
,也许 tags
?使用标签 reset
按钮后, textfields
是否被清除?
特别是(如果与 HTML按钮
有一些区别),我想知道 JavaServer Faces
commandButton。
我正在寻找一些高级规范或其他内容。 $ c>(default)会生成HTML < input type =submit>
< h:commandButton type =reset> ;
生成一个HTML < input type =reset>
,并且< h:commandButton type =按钮>
生成HTML < input type =button>
。
就是这样,真的。这也在 < h:commandButton>
标记文档。有关HTML表示之间的功能差异,请查看 HTML表单规范。请注意,这部分完全超出了JSF的范围。
毕竟,如果你学习基本的HTML ,因为这基本上是JSF生成的。
Hi I have a question that I always want to ask. I'm talking about different types of type
tag. I read about it a little, but most pages have only names of different tag and nothing more. what is the scope of such a CommandButton, forms
,maybe tags
? Which the textfields
are cleaned after use with the tag reset
button?
Especially (if there are some differences with HTML button
) i want to know about JavaServer Faces
commandButton.
i'm looking for some advanced specification or something. Thanks.
The <h:commandButton type="submit">
(default) generates a HTML <input type="submit">
the <h:commandButton type="reset">
generates a HTML <input type="reset">
and the <h:commandButton type="button">
generates a HTML <input type="button">
.
That's all, really. That's also specified as such in <h:commandButton>
tag documentation. For the functional difference between the HTML representations, just look in HTML forms spec. Note that this part is completely beyond the scope of JSF.
After all, perhaps it's helpful if you learn basic HTML before learning JSF as that's basically what JSF generates.
这篇关于h:commandbutton类型之间的区别究竟是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!