In GWT , I can add my custom properties or attributes in widgets.
Widget widget = new Widget();
widget.getElement().setAttribute("seq", "1001");
System.out.println(widget.getElement().getAttribute("seq"));
Can I also add like this in vaadin's components ? If yes , how ?
informations in general are transported by the "state" from the server/java-side to the client. Component has lots of trivial accessors for the most common problems (e.g. adding stylesheets). if you want to write your own widgets/components and pass your own data along the state, there are good examples in the wiki e.g. https://vaadin.com/wiki/-/wiki/Main/Integrating%20a%20JavaScript%20component.