Vaadin Table control

Hi

I want more control on table creation in vaadin table like i want to create tr, td, div or contents to table manullay.
Is it possible in vaadin?
Like something this
Vaaditable table = VaadinUtil.newTable();
table.setAttribute(“cellspacing”,“0”);
table.setAttribute(“cellpadding”,“0”);
table.setAttribute(“border”,“1px solid #000000”);
table.setAttribute(“width”,“100%”);

More also is it possible to create new div element in browser through vaadin something like DOM.createDiv as in GWT.

Thanks
Suri

Hi Suri,
this code looks terrible. I cannot imagine that you really like to have this type of control. With vaadin youre free to write your own widgets using gwt.

Greets
stefan

You can add a class identifier to your table with table.addStyleName(“myTable”); which after you can apply css upon it in your theme…

.myTable{
...
}

but modifying the DOM structure (div’s td’s etc.) isn’t possible to do from the server side - you must create an own widgets as Stefan already said.