Buttons and Links
h:commandButton
- Submits request and invokes JSF life cycle:
- Invokes actions when button activated (for navigation)
- Fires action events when button activated
h:commandLink
- Submits request and invokes life cycle like h:commandButton
- Uses JavaScript to generate HTML anchor element that acts like a
form submit button
h:outputLink
- Does not invoke JSF life cycle
- Simply loads a resource through a generated anchor element