As you may know that you can render button in HTML5 in 2 methods:
- Using void element
<input type="button" />
or - If you want content, use the
<button></button>
element (which isn't a void element).
In JSF2, there are 2 ways to generate buttons; either with UICommand
or UIOutcomeTarget
component. I understand what these 2 components are for, my question what would be the best component for the 2 HTML5 button types, should one create these HTML5 components in JSF2?
So far, the best aspects is to create a UICommand
and UIOutcomeTarget
for each HTML5 elements.