Using GWT Editors with a complex usecase

后端 未结 4 1375
执念已碎
执念已碎 2020-12-02 13:36

I\'m trying to create a page which is very similar to the Google Form creation page.

\"enter

4条回答
  •  Happy的楠姐
    2020-12-02 14:34

    Isn't the fundamental problem that the binding happens at compile time so will only bind to QuestionDataProxy so won't have sub-type specific bindings? The CompositeEditor javadoc says "An interface that indicates that a given Editor is composed of an unknown number of sub-Editors all of the same type" so that rules this usage out?

    At my current job I'm pushing to avoid polymorphism altogether as the RDBMS doesn't support it either. Sadly we do have some at the moment so I'm experimenting with a dummy wrapper class that exposes all the sub-types with specific getters so the compiler has something to work on. Not pretty though.

    Have you seen this post: http://markmail.org/message/u2cff3mfbiboeejr this seems along the right lines.

    I'm a bit worried about code bloat though.

    Hope that makes some sort of sense!

提交回复
热议问题