endrigoantonini endrigoantonini - 1 month ago 10
Java Question

HTML 4 <button> in JSF 2.1

I would like to use the commands:

The JSF

<h:commandButton>
generates an
<input...>
but I would like that instead of generating the
<input>
I would like that this generate a HTML 4 standard
<button>
.

Answer

You should look into the Primefaces p:commandButton. This will render to a <button> tag on the client.

http://www.primefaces.org/showcase/ui/commandButton.jsf