In JSF 2, what is the difference between h:button and h:commandButton ?
h:commandButton must be enclosed in a h:form and has the two ways of navigation i.e. static by setting the action attribute and dynamic by setting the actionListener attribute hence it is more advanced as follows:
this code generates the follwing html:
whereas the h:button is simpler and just used for static or rule based navigation as follows
the generated html is
Facelet Title