1

我正在使用 primefaces 3.5,我需要一个<input type="submit">,如何从 primefaces 呈现这个标签?我看到 primefaces<p:button .../><p:commandButton .../>render<button type="button" />但这不适用于我想在我的项目中执行的操作,我也接受 jsf2,但我需要 ajax 提交,有人知道如何使用 p:someComponent 或 h:someComponent 呈现输入类型提交和 ajax 吗?

4

1 回答 1

1

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

于 2013-02-28T03:42:12.463 回答