1 Reply Latest reply on Mar 4, 2009 7:25 AM by Leon Li

    Press enter key on the only input field  will not trigger the command button action to be invoked in IE7

    Leon Li Newbie

      I have a page to filter the result according to the user input like belows:



      <h:form>
      
      <h:outputText value="Organization Name:" />
      <h:inputText value="#{organizationListController.searchName}" />
      
      <h:commandButton value="Find" action="#{organizationListController.search}" />
      
      </h:form>




      Please remember, there is only one input field in the form.


      Every time after I input the organization name and press entery key, the command button binding action will be invoked in Firefox. But it will not be invoked in IE7.


      Then workaround I find is to add another input field(which I set it to invisible using css). The action will be invoked in both IE7 and Firefox when you press enter key.


      So is this a bug? Any advice will be appreciated.