Execute Command after hit Enter in a inputText

Viewed 2802

Mojarra 2.1.5 / PrimeFaces 3.5

I dont know how to explain that.I have one inputText and commandButton When I type something in inputText and hit Enter I need the commandButton be executed automatically.

<p:inputText id="txtProducao" required="false"
    value="#{ManagedBean.xxxPreco.producaoDia}"
    requiredMessage="#{bundle.xxPreco_xProdx}>
</p:inputText>
<p:commandButton id="buttonProducaoDia" 
    icon="ui-icon-check"
    actionListener="#{ManagedBean.calculaProdxxx}"
    update="txtValorSoma">
</p:commandButton>

I need to type some value for each inputText and after hit Enter I need the respective commandButton be executed :

enter image description here

1 Answers
Related