user1852036
user1852036

Reputation:

primefaces: render input type=submit

I'm using primefaces 3.5 and I need a <input type="submit">, how I can render this tag from primefaces? I see that primefaces <p:button .../> and <p:commandButton .../> render <button type="button" /> but this not work for I want to do in my project, I accept jsf2 too, but I need ajax submit, someone know how to render input type submit and ajax with p:someComponent or h:someComponent ?

Upvotes: 1

Views: 2705

Answers (1)

James Bassett
James Bassett

Reputation: 9868

The standard <h:commandButton type="submit"/> renders as <input type="submit">, but as far as I'm aware none of the Primefaces components do. Of course you'll lose the themeroller look and feel, so you'd need to add the appropriate ui- styles manually (otherwise it's going to look pretty out of place!).

Upvotes: 1

Related Questions