Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GWT and creation of own widgets

 
Ulrich Vormbrock
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm actually trying to write an own widget, enabling to realize a kind of "tabbed panel" based on HTML list (<ul> and <li>).
Besides, no enclosing <div> should be generated - opposed to the most GWT widgets.

The background is that I want to integrate my widget into a css framework: as soon as an enclosing <div> comes into play, the whole widget is not displayed correctly.

I've just tried to write an own Widget class, looking like this:



The problem is that the widget from outside (for example HTML) has an enclosing <div>, thus destroying my design.
The add-Method (line 31, from ComplexPanel class) only takes a Widget as first argument, not an Element - so it seems to be unpossible to get rid of the <div>, doesn't it?

Or maybe there is a more elegant way to generate own widgets, bypassing the enclosing <div> tags?

In any case, my final output should look like this:


Any ideas?
 
Rudradutt Joshi
Ranch Hand
Posts: 45
Fedora Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you planning to use javascript to modify the div you are creating?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic