0
Ich habe das gleiche Problem wie dieser Kerl: Enter Key Press behave like Submit in JSF Also meine Geben Sie Taste nicht zu in h:inputSecret
funktioniert.Drücken Sie tritt nicht in h arbeiten: inputSecret
Die Antworten, die er bekam, sind nicht ausreichend für mich. Und ich möchte etwas Code für Sie hinzufügen:
<h:form>
<div class="box-login runny-bg round-corners" >
<h6><h:outputText value="Bitte melden Sie sich an" styleClass="seperator text-center" /></h6>
<br />
<h:outputLabel for="name" value="Name" />
<h:inputText id="name" value="#{loginData.name}" />
<h:outputLabel for="pw" value="Password" />
<h:inputSecret id="pw" value="#{loginData.pw}" />
<h:outputLabel for="remember" value="Remember me" />
<h:selectBooleanCheckbox id="remember" value="#{loginData.remember}"/>
<br />
<br />
<div class="buttons left">
<h:commandLink type="submit" action="#{loginController.login}" >
<h:outputText value=" Login" />
</h:commandLink>
<br />
</div>
</div>
</h:form>
Wie kann ich dieses Problem lösen?