Previously in GWT 2.4, I was using uibinder's provided=true feature to add
my own panels:
(uibinder code)
<g:HTMLPanel ui:field="myPanel" />
(java code)
@UiField (provided=true)
HTMLPanel myPanel;
In GWT 2.5, this no longer works and gives the error that it isn't
supported:
(gwt source)
// Make sure that, if there is a UiField for this panel, it isn't
// (provided = true), as that isn't supported.
OwnerField uiField = writer.getOwnerClass().getUiField(fieldName);
if (uiField != null && uiField.isProvided()) {
writer.die("UiField %s for HTMLPanel cannot be provided.", fieldName);
}
I'm curious as to why this would be? Isn't the provided=true part of
UiBinder meant to allow you to replace fields in your template?
I've changed it now to have UiBinder create the HTMLPanel for me, and then
add my HTMLPanel to it after, but I get an extra wrapping <div> tag now. Is
there a reason that HTMLPanel can no longer have provided=true ?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/ORb4QofqpzIJ.
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.