Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Alpha3
-
Component/s: Sample Apps
-
Labels:None
-
Environment:ICEfaces 2 JSF 2
Description
When running the Auction application, if you put focus in the input text field for the screen name used for chat, hitting the Enter key does not result in an update to the page. Once you are in the chat, the Enter key does work to submit chat messages. The issues seems confined to pure ICEfaces 2.0 as the AuctionMonitor application in compatibility mode appears to behave properly.
In the original AuctionMonitor application, based on 1.8, we used ice: components. For this version of Auction, everything was ported to use h:components. The problem here is that the h:inputText does not support action or actionListener attributes like the ice:components. Our new captureEnterKey logic was working, but the code for entering the chat room was never being called. What used to be triggered in the actionListener code for entering the chat room was not executing. By adding the enterConversation method call to the end of setNick in UserBean, the Auction chat now works as expected when the nickname is submitted using the Enter key.