Hi,
I've made a very simple GroupBox widget which works fine. I can add it
in java to a panel, set caption and add widgets. But now I want to add
it in a UiBinder template file.
To enable it to contain HTML, I had to implement the HasHTML
interface. Now the following works fine:
<g:HTMLPanel>
<b:GroupBox caption="hello">
Hello World
</b:GroupBox>
</g:HTMLPanel>
Next step; I want to be able to add child widgets from within my
template, eg:
<g:HTMLPanel>
<b:GroupBox caption="buttons">
<g:Button ui:field="btnShow">Show</g:Button><br/>
<g:Button ui:field="btnClear">Clear</g:Button>
</b:GroupBox>
</g:HTMLPanel>
Even though my GroupBox class extends the AbsolutePanel class, which
implements the HasWidgets interface, it fails with the following
error:
Found widget <g:Button ui:field='btnShow'> in an HTML context
Has anybody an idea how I can add child widgets in my UiPanel
template? How do I have to implement my container widget?
Thanks, Joost
--
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.