Thanks for that info David. Quite simple indeed. We are currently relying on a lot of widgets, but we've got a similar pattern already using com.google.gwt.dom.client.* elements in UiBinder.
That helps alot! On Tuesday, April 4, 2017 at 3:22:22 PM UTC+8, DavidN wrote: > > Thomas, > > I can't point you to any example on the internet. I am not allowed to post > my code online. > But is is actually quite simple. I just use UiBinder and inside plain html > tags inside an HTMLPanel. > > Something like this: > <ui:uiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" > xmlns:g="urn:import:com.google.gwt.user.client.ui"> > <g:HTMLPanel> > <h1 ui:field="pageTitle"/> > <input ui:field="textbox"/> > </g:HTMLPanel> > </ui:uiBinder> > > In the UiBinder class you can just do: > @UiField > HTMLElement pageTitle; > > @UiField > HTMLInputElement textbox; > > and it will be properly filled in. From there you can just use the > Elemental2 API. > > I guess you could even skip the HTMLPanel and use a pure HTML approach but > in my case I still have to mix widgets with pure HTML because I am > depending on celltables (which we customized and extended a lot). But I am > looking at replacing them with a JS table implementation. > > On Mon, Apr 3, 2017 at 2:28 PM Thomas <[email protected] > <javascript:>> wrote: > >> David, could you point me to some examples of "UiBinder with elemental2" >> ? Quite curious but can't find too (m)any examples via Google. >> >> >> On Monday, March 27, 2017 at 5:21:32 PM UTC+8, DavidN wrote: >> >>> Bryan, >>> >>> We don't know enough of GWT 3.0 to be 100% certain. As a consequence I'm >>> just trying to be as pragmatic as possible. >>> >>> What I am currently doing is this: >>> - UiBinder with elemental2 >>> - celltable/datagrid >>> - JsInterop to interact with JQuery/Bootstrap/D3 and some other >>> components for JQuery. Writing the JsInterop was really easy. >>> - GWTP for MVP design to keep my tests fast and independent of the UI >>> layer >>> - Using restygwt with gwtjackson for RPC. >>> >>> The UiBinder dependency will be a problem with GWT 3.x but right now I >>> did not find something that really was 100% my taste (Errai comes close, >>> but I don't like going full Errai). Migrating the templates should not be >>> too hard since the html files are mostly pure HTML tags anyway. >>> >>> My exposure the celltable/datagrid is hidden behind a builder pattern >>> and the column model is generated using a custom generator. I'm considering >>> moving to either a pure JS table implementation or the Vaadin grid >>> component. But there is no rush at this moment. >>> >>> >>> On Mon, Mar 27, 2017 at 10:09 AM Frank <[email protected]> wrote: >>> >> I am just ignoring all talks about GWT3. >>>> Nobody really knows what will go away. And the talk about it is going >>>> on for almost 3 years. >>>> I decided I will fix stuff when GWT3 is actually released and I know >>>> for sure what will go away. >>>> >>>> I don't use UIBinder and never used it. And I don't use GWT-RPC because >>>> I talk to a non java rest service. But also using widgets and >>>> gwt-gootstrap3. >>>> >>>> Op maandag 27 maart 2017 06:55:27 UTC+2 schreef Bryan Buchanan: >>>> >>>>> Hi, >>>>> >>>>> I've been a long time GWT user, and my current apps use gwtbootstrap, >>>>> UI Binder, widgets, GWT-RPC. i.e. most of the stuff that, IMO, makes GWT >>>>> worth using. >>>>> >>>>> From the stuff I've seen about the 3.x release, a lot of this >>>>> disappears. I'm wondering if there's any document anywhere which sets out >>>>> "best practice" for any new GWT deleopment (or indeed, would you even use >>>>> GWT ?). >>>>> >>>>> Thanks. >>>>> >>>> -- >>>> 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 [email protected]. >>>> >>> To post to this group, send email to [email protected]. >>> >>> >>>> Visit this group at https://groups.google.com/group/google-web-toolkit. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >> 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 [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at https://groups.google.com/group/google-web-toolkit. >> For more options, visit https://groups.google.com/d/optout. >> > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
