4

How do we use html 5 button tag to perform jsf action eg.

to perform

<h:commandButton action="#{identity.login}" value="Login"/>

what will be the equivalent in html 5 ??

Kamal Datta
  • 73
  • 1
  • 6
  • The standard JSF component suite currently does not render any HTML5 output. That doesn't mean that JSF won't support HTML5, just that there is a lack of a good JSF/HTML5 component suite currently available. You would have to write your own JSF component. Check out Primefaces though because they have a few components that render HTML5. – maple_shaft Apr 15 '13 at 13:32

2 Answers2

0

Try to write a custom facelet component to wrapper a html5 element yourself.

Another project, omnifaces provides html5 compatibility for current jsf components.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Hantsy
  • 8,006
  • 7
  • 64
  • 109
0

<input jsf:id="do-search-button" type="submit" jsf:action="#{searchController.doSearch}" class="search-button" title="#{msg.search_tooltip}" value="#{msg.search_button}" />

jorelia
  • 41
  • 1