HTML 4< button>在JSF 2.1中 [英] HTML 4 <button> in JSF 2.1
本文介绍了HTML 4< button>在JSF 2.1中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用命令:
JSF < h:commandButton>
生成< input ...>
但我希望而不是生成< input>
我希望如此这会生成一个HTML 4标准< button>
。
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>
.
推荐答案
你应该查看Primefaces p:commandButton
。这将呈现给客户端上的< button>
标记。
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
这篇关于HTML 4< button>在JSF 2.1中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文