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.
Looks like everything is happening basically the way it's supposed to when the Enter key is pressed but the update that comes back when trying to Join the chat is rather sparse - so perhaps there is something about the DOM diffing that's not quite right.
<partial-response>
<changes>
<update id="chat:default">
<input id="chat:default" name="chat:default" src="./images/x.gif" type="image" />
</update>
<update id="javax.faces.ViewState">525100616217277955:-2989719190345398102</update>
</changes>
</partial-response>
I also noticed that in the page markup, the button used to send the chat messages shows a slightly different strategy (action vs actionListener on the button):
<h:inputText immediate="false" id="messageIn" size="50"
{UserBean.message}value="#
"
title="Enter your message text"
styleClass="textField"/>
<h:commandButton id="button_send_message"
value="Send Message" action="send"
styleClass="orangeButtons"
title="Send your message text"/>
than the inputText and button for Joining the chat:
<h:inputText id="text_nickname_chat"
{UserBean.nick}value="#
"
title="Enter a nickname used in the chat"
styleClass="textField"
/>
<h:commandButton
{UserBean.enterConversation}id="join_chat_button" styleClass="orangeButtons"
value="Join Chat"
title="Join the chat conversation"
actionListener="#
"/>