Jsf file having inputtext field.After entering value in the field and pressing enter,it should perform the action in command button(nextButton) i.e- call Action() in BackingBean.java
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
    <ui:define id="content" name="page-content">
    <h:inputText id="Number" value="#{BackinBean.Id}"/>
    </ui:define>
    <ui:define id="contentfooter" name="page-content_footer">
        <table width="100%">
            <tr>
                <td>
                    <h:commandButton id="nextButton" value="Next"
                        action="#{BackinBean.Action}" styleClass="btn"/>
                </td>
            </tr>
        </table>
    </ui:define>
Bean class-BackingBean.java has
    public Action(){..........}
 
     
    