Search code examples
javahtmljsfjsf-2html4

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>.


Solution

  • 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