Note that there are some explanatory texts on larger screens.

plurals
  1. POGwt architecture : why use MVP, Editors, RequestFactory, Gin etc?
    primarykey
    data
    text
    <p>I've been working for a year now on a GWT application, and we never felt the need to use any of these frameworks or tools.</p> <p>So i feel like we're probably missing out.</p> <p>We do it "code behind" style.</p> <p>Here's a simple example on how we build our code :</p> <p>MyPanel.ui.xml :</p> <pre><code>&lt;label ui:field="label"/&gt; &lt;g:TextBox ui:field="box"/&gt; &lt;g:Button ui:field="button"/&gt; </code></pre> <p>MyPanel.java :</p> <pre><code>@UiField LabelElement label; @UiField TextBox box; @UiField Button button; MyBean myBean; Messages messages = GWT.create(Messages.class); MyServiceAsync myServiceAsync = GWT.create(MyService.class); ... protected void i18n() { label.setInnerText(messages.label()); button.setText(messages.button()); } ... @UiHandler("box") void box_onValueChange(ValueChangeEvent&lt;String&gt; event) { myBean.setText(event.getValue()); } @UiHandler("button") void button_onClick(ClickEvent event) { myServiceAsync.sendData(myBean, new AsyncCallback&lt;MyResponse&gt;() { @Override public void onSuccess(ReponseDispoBean result) { Window.alert(result.message()); } @Override public void onFailure(Throwable caught) { Window.alert(caught.getMessage()); } }); } </code></pre> <p>To communicate between panels (portions of pages, each in its own class), we use the widget's or the application's eventbus to send custom events.</p> <p>To navigate we use the places/tokenizers/activities and the historymapper</p> <p>And for unit and functionnal tests, we use <a href="https://github.com/gwt-test-utils/gwt-test-utils">gwt-test-utils</a></p> <p>And that's it. So i'm wondering : what pain those tools help with ? What compelling reason is there to use them ?</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload