I must have completely missed that feature in the documentation. I gave that a try, and I have to say I am impressed! I was even able to use java.lang.String as the provided type!
Combined with the ability to use different ui.xml templates documented here: http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Apply_different_xml I should be able to declare one ui.xml for IE and another for everything else. I'll try that next and that would really simplify things. Thanks so much for the help! On Dec 15, 1:08 am, Ray Ryan <rj...@google.com> wrote: > It's already there. Do something like: > > class ParamValuesPojo { > private final String uri; > private final String token; > > ParamValuesPojo(String uri, String token) { > this.uri = uri; > this.token = token; > } > > public class UploaderWidgetImplIE extends UploaderWidgetImpl { > final @UiField(provided=true) ParamValuesPojo paramValues; > > UploaderWidgetImplIE(ParamValuesPojo values) { > this.paramValues = values; > setElement(binder.createAndBindUi(this)); > } > > } > > <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'> > <ui:with field='paramValues' type='com.jarod.ParamValuesPojo'/> > <div> > <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" > name="Uploader" width="100%" height="350" > codebase="http://java.sun.com/update/1.6.0/jinstall-6u16- > windows-i586.cab#Version=6,0,0,1<http://java.sun.com/update/1.6.0/jinstall-6u16- > windows-i586.cab#Version=6,0,0,1>"> > <param name="code" > value="org.jets3t.apps.uploader.Uploader.class" /> > <param name="codebase" value="." /> > <param name="archive" > value="uploader-0.7.1-signed.jar,jets3t-0.7.1- > signed.jar,jets3t-gui-0.7.1-signed.jar,commons-codec-1.3- > signed.jar,commons-httpclient-3.1-signed.jar,commons-logging-1.1.1- > signed.jar" /> > <param name="type" value="application/x-java- > applet;version=1.6" /> > <param name="scriptable" value="false" /> > <param name="mayscript" value="false" /> > <param name="uri" value="{paramValues.uri}" /> > <param name="token" value="{paramValues.token}" /> > No Java Support. > </object> > </div> > </ui:UiBinder> -- http://groups.google.com/group/Google-Web-Toolkit-Contributors