Hi everybody,

I have trouble building a custom widget/panel.

Custom Element: MyElement extends Anchor implements ClickListener
Custom Panel: MyPanel extends ComplexPanel

Now what I want is adding a mixture of plain text and custom elements
to my panel, in the end the structure should be the following:

<span>(MyPanel)
...some text
...<a> </a>(MyElement)
...some text
...<a> </a>(MyElement)
...
</span>

I tried to build the content as a html string and apply it with
DOM.setInnerHTML(content). It looks pretty well but removes event
handling.

<span>(MyPanel)
...<a> </a>(MyElement)
...<a> </a>(MyElement)
...
</span>

...works without problems.

Any suggestions? Thanks for you help.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to