How can I define the ID for an HTMLPanel?
Of course I could surround the HTML with a <div id="anID">
but this would also not set the ID of the panel.
You can do it like that :
htmlPanel.getElement().setId( "yourId" );
This works for any widget/element.