Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Alpha2
-
Component/s: Bridge, Framework, ICE-Components
-
Labels:None
-
Environment:ICEfaces 2 Compatibility
-
ICEsoft Forum Reference:
Description
Given a simple test case like this:
<ice:form>
<ice:inputText value="BLAH" action="#{simple.textAction}"/><br/>
<ice:commandButton value="Click" action="#{simple.buttonAction}"/><br/>
</ice:form>
If you focus the inputText field and hit the Enter key, the action methods of both the inputText component and the commandButton are called. This behaviour is different from ICEfaces 1.8 where only the action of the inputText field would be called.
<ice:form>
<ice:inputText value="BLAH" action="#{simple.textAction}"/><br/>
<ice:commandButton value="Click" action="#{simple.buttonAction}"/><br/>
</ice:form>
If you focus the inputText field and hit the Enter key, the action methods of both the inputText component and the commandButton are called. This behaviour is different from ICEfaces 1.8 where only the action of the inputText field would be called.
Modified ice.s and ice.ss functions to cancel the default action when enter key is pressed. This way the event won't trigger a form submit anymore.