Friday, June 26, 2020

Re: Elemental2 and widgets

in most of the simple cases where you just wrap an element inside a widget like that, then you keep using the element as element not as a widget, things should work, but if you at some point needs a widget like interaction between wrapped widgets where the widget will expect a correct wiring of parent widget and a proper events sink you will face problems.

as for domino-ui, i would say you can just wrap as widgets only to append those domino-ui as elements, which means you will only treat them as widgets when you are appending them. other than that the gradual migration depends on how you would map your widgets to the domino-ui components, and how you split your views, and what mvp you use for example.

On Sunday, June 21, 2020 at 2:02:09 PM UTC+3, Gordan Krešić wrote:
On 21. 06. 2020. 08:55, Vegegoku wrote:
> sorry, i meant to say : That will *NOT* do the required wiring
>
> On Saturday, June 20, 2020 at 1:55:20 PM UTC+3, Vegegoku wrote:
>
>     That will do the required wiring to make elements behave like widgets,
>     it will not wire events correctly nor it will wire the attach/detach,
>     you can do it but it is not a simple task, thats why elemento moved the
>     issue the lib user instead of solving it in the lib itself.

Could you be a bit more specific?

So far, I've tested with only a very simple hierarchy:

        RootPanel -> SimpleLayoutPanel -> [widget/Domino border] -> GridLayout ->
other Domino elements

and I didn't see any problems, neither with event handling (click listeners
on GridLayout children) nor with GridLayout.onDetached (didn't test onAttached).

So, where I can expect problems to start manifesting?

Also, back to my initial question: ss there any "best practice" for
graduately migrating widget-based app to DominoUI?

        -gkresic.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/7042edb1-0c52-41a9-b367-7c50d4857575o%40googlegroups.com.

No comments:

Post a Comment