I would like to use smartGWT as a pure component library that is integrated with GWT so I can use benefits of GWT that are mainly:
- UI binder those layout is easy to manage by designers and is recommend by GWT
- GWT Editors with validators where we can directly use our POJOs
I sucessfully integrated smartGWT widgets with UIBinder just have a problem with FormItem because they are not extending Widget (or Canvas) and only one way I see there is wrap each FormItem to DynamicForm that leads into multiple form elements in generated HTML that is not recommended.
I want to have following:
and then I can use such widgets in following way:
so I have very nice and rich widget from smartGWT and still features of GWT.
Is there any way how to wrap FormItems into Widget (the best is to wrap it into Div element)?
Thanks,
Michal
- UI binder those layout is easy to manage by designers and is recommend by GWT
- GWT Editors with validators where we can directly use our POJOs
I sucessfully integrated smartGWT widgets with UIBinder just have a problem with FormItem because they are not extending Widget (or Canvas) and only one way I see there is wrap each FormItem to DynamicForm that leads into multiple form elements in generated HTML that is not recommended.
I want to have following:
Code:
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:editor="urn:import:nl.vwpfs.pos.mo.client.editor" ui:generateFormat="com.google.gwt.i18n.rebind.format.PropertiesFormat" ui:generateKeys="com.google.gwt.i18n.server.keygen.MD5KeyGenerator" ui:generateLocales="nl"> <g:HTMLPanel> <p> THIS IS TEST FORM WITH SMARTGWT WIDGETS </p> <hr class="space" /> <div class="felements"> <!-- row --> <div class="fspan-13"> <editor:TextItemEditor ui:field="name" /> </div> </div> <hr class="space" /> </g:HTMLPanel> </ui:UiBinder>
Code:
SearchListWidget searchListWidget = new SearchListWidget(); searchListEditorDriver.initialize(searchListWidget); TestDossier testDossier = new TestDossier(); testDossier.setName("TEST NAME"); searchListEditorDriver.edit(testDossier);
Is there any way how to wrap FormItems into Widget (the best is to wrap it into Div element)?
Thanks,
Michal
Comment