Tuesday, September 22, 2015

Mixing Html and Widgets in UiBinder

I tried to figure this out for some time now and I hope someone can help me to figure this out, because I have no idea what I am missing.

I'm using Gwt 2.7 and I want to mix html and my own widgets inside the UiBinder as following:
<g:HTMLPanel>
   
<my:SomeObject>
       
<div>
           
<my:SomeOtherObject />
       
</div>
   
</my:SomeObject>
</g:HTMLPanel>

In this case SomeOtherObject throws "[ERROR] Not allowed in an HTML context:"

I am puzzled because the following configurations work and the above should be a combination of both:
<my:SomeObject>
       
<div></div>
</my:SomeObject>
<div>
<my:SomeObject />
</div>

I have not worked much with html directly inside UiBinder and I don't know if my configuration is even possible, so I hope someone can clarify.

Thank you for the help,
Andrei

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment