Java – is GWT uibinder inherited?

My model has a base class for crud forms In the template of this class, I have a save button

In the extension class, I have many fields relative to a specific model, but not the Save button

Every time I call createAndBindUi in the sub model, an error is thrown, which means I have not saved the button.

Who knows how to do this correctly? Solutions can be published

Solution

If you need to use uibinder in superclasses and subclasses, you have a design problem Using composition instead of inheritance will also solve your uibinder problem

Although there are hacking / workarounds, our idea is never to use the same object as the theme of the two uibinder templates

There are a lot of discussions on uibinder and inheritance on the GWT Forum (although not so much): https://groups.google.com/d/searchin/google-web-toolkit/uibinder%20inheritance

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>