enter key inputText make reset and no submit

UI Components for JSF
Post Reply
ydescham
Posts: 4
Joined: 21 Oct 2009, 11:34

04 Nov 2009, 18:37

I try that, when the user press on return key... the view is reload... i like to make a submit, how ?

<i:tableView display="group">
<i:rowGroup title="Recherche - Personnels">
<i:rowItem>
<h:inputText id="Nom" size="20" value="#{staffController.name}"
validator="NameValidator" minimum="2" maximum="20"
regex="[A-z][ \-àâäéèëêîïôöùûüçA-z][ \-àâäéèëêîïôöùûüçA-z]*"
>
</h:inputText>
</i:rowItem>
</i:rowGroup>
<p:commandLink id="submit" actionListener="#{staffController.search}"
update="messages, Nom, personsList" style="margin:10px;"
styleClass="whiteButton">Chercher</p:commandLink>
<p:commandLink actionListener="#{staffController.reset}"
update="messages, Nom, personsList" style="margin:10px;"
styleClass="grayButton">Annuler</p:commandLink>
</i:tableView>

ydescham
Posts: 4
Joined: 21 Oct 2009, 11:34

05 Nov 2009, 17:35

I change commandLink by commandButton, all is oK now ! :D

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

06 Nov 2009, 02:44

;)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests