Directory

← Back

ChatBox

A chat component for Vaadin

Author

Contributors

Rating

ChatBox lets people chat with each other.

To keep the chat updating in real-time, you probably want to use the server push (available from Vaadin 7.1.0 onwards) when using this component. https://vaadin.com/wiki/-/wiki/Main/Enabling%20server%20push

Sample code

    // A static variable so that everybody gets the same instance.
    private static SharedChat chat= new SharedChat();
    
    @Override
    public void init() {
        ChatBox cb = new ChatBox(chat);
        ChatUser user = ChatUser.newUser("Pertti Pasanen");
        cb.setUser(user);
        layout.addComponent(cb);
    }

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Released
2014-01-15
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.0+
Vaadin 6.7+ in 0.3.1
Vaadin 6.5+ in 0.3.0
Browser
Firefox
Google Chrome
Internet Explorer
Online