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
提交
取消