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.
I just find another post about that. And we can use s:defaultAction tag nested in h:commandButton component. That works too.