h:按钮和h:命令按钮的区别在JSF 2中,h:button和h:commandButton ?
3 回答
30秒到达战场
TA贡献1828条经验 获得超6个赞
h:button
h:button
GET
h:commandbutton
h:commandbutton
宝慕林4294392
TA贡献2021条经验 获得超8个赞
<h:form> <h:commandButton action="page.xhtml" value="cmdButton"/></h:form>
<form id="j_idt7" name="j_idt7" method="post" action="/jsf/faces/index.xhtml" enctype="application/x-www-form-urlencoded">
<h:button outcome="page.xhtml" value="button"/>
<title>Facelet Title</title></head><body><input type="button" onclick="window.location.href='/jsf/faces/page.xhtml'; return false;" value="button" />
添加回答
举报
0/150
提交
取消