Reputation: 881
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.
Upvotes: 2
Views: 8445
Reputation: 1108722
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.
Upvotes: 7