这是我的xhtml登录页面......
<div id="externalborderReg">
<p:spacer height="70px" />
<div id="loginForm" >
<h:form id="login" onsubmit="document.getElementById('login').action='j_security_check';" prependId="false">
<h:panelGrid columns="2">
<p:outputLabel for="j_username" value="Email:" />
<p:inputText id="j_username" name="j_username" placeholder="Email" required="true"/>
<p:outputLabel for="j_password" value="Password:" />
<p:password id="j_password" name="j_password" placeholder="Password" required="true" />
</h:panelGrid>
<p:spacer height="40px"/>
<div id="loginButton">
<p:commandButton id="submit" value="Login" ajax="false" />
</div>
</h:form>
</div>
</div>
现在我想让p:commandButton成为一个h:commandLink,但如果我尝试更改它,登录按钮/链接就会停止工作......我怎么能改变呢?
请帮帮我......