var textfield = mainChatWindow.getComponent('messenger-chat-textchat').getComponent(1).getComponent(0);