GWT Designer Issues

140 views
Skip to first unread message

Nuno R

unread,
Aug 5, 2011, 1:02:41 PM8/5/11
to Google Web Toolkit
Hi, i'm having some issues with GWT Designer. [last beta]
http://code.google.com/intl/pt-PT/webtoolkit/tools/download-gwtdesigner-beta.html

1. When using a property provider to allow deferred binding rules
creation, GWT Designer says it can not find the property.
I'm using the same FormFactor provider present in the mobile example
showed at Google IO.
http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/mobilewebapp/src/com/google/gwt/sample/mobilewebapp/FormFactor.gwt.xml?r=10041

The error => http://pastie.org/2326151

2. Another unrelated issue (i think).
Does the last GWT Designer support @UiField(provided=true)?
I always get the following error: http://pastie.org/2326089


Does anyone one have stumbled on this before?

Thanks in advance,
Nuno

Konstantin Scheglov

unread,
Aug 5, 2011, 4:49:31 PM8/5/11
to google-we...@googlegroups.com
Official way for handling exception in GWT Designer is creating error report (as suggested by error page) and creating new issue, with report attached.
In other case this will lead to discussions "give us this file", "show log", etc.
Be wise and attach enough information, which may be useful, such as module.gwt.xml files.

2. Yes, GWT Designer supports @UiField(provided=true). But as you understand, there are no magic. GWT Designer can not know that this interface should be replaced with that class.
So, you should help it, by writing script to create instance.
See for example CellList.wbp-component.xml in GWT Designer plugin (in wbp-meta folder).

     <parameter name="UiBinder.createInstance"><![CDATA[
    import com.google.gwt.cell.client.TextCell;
    import com.google.gwt.user.cellview.client.*;
    list = new CellList(new TextCell());
    list.setRowData(0, {'1. Item', '2. Long item', '3. Even longer item', '4. Item', '5. Long item'});
    list.setRowCount(5);
    return list;
    ]]></parameter>

Nuno R

unread,
Aug 16, 2011, 11:09:21 AM8/16/11
to Google Web Toolkit
1. Has suggested, opened an issue describing the problem (sample
project attached).
http://code.google.com/p/google-web-toolkit/issues/detail?id=6693

2. I assumed GWT Designer would setup a Dev Mode environment, i.e.
UiBinder code is already generated and permutation done.
I will look into *.wbp-component.xml files and see if i can figure it
out.

Thanks,
Nuno R.

Daniel Kurka

unread,
Feb 10, 2012, 7:25:34 AM2/10/12
to google-we...@googlegroups.com
is there an actual workaround for this (as suggested in the issue?)

Someway to force gwt designer to use the default binding if it can not call the property providers?


Message has been deleted

Konstantin Scheglov

unread,
Feb 11, 2012, 9:49:39 AM2/11/12
to google-we...@googlegroups.com
Unfortunately no.
But I'm working now on property-provider support.
It works in general and allows my to open mGWT UI.
I need some time for testing this change though.
Reply all
Reply to author
Forward
0 new messages