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"
value="#
{UserBean.message}
"
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"
value="#
{UserBean.nick}
"
title="Enter a nickname used in the chat"
styleClass="textField"
/>
<h:commandButton
id="join_chat_button" styleClass="orangeButtons"
value="Join Chat"
title="Join the chat conversation"
actionListener="#
{UserBean.enterConversation}
"/>
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="#
"/>