Should be great if we can use a proxy on a UiBinder template with the <ui:with>
I tryed to do it, but i get a error.
public class VerPresupuestos extends TabItem
PacienteProxy pacienteProxy;
public VerPresupuestos(final PacienteProxy pacienteProxy) {
this.pacienteProxy = pacienteProxy;
initWidget(uiBinder.createAndBindUi(this));
}
...
}
and on the UiBinder template.
<ui:with type="xx.xxx.Project.shared.Model.Paciente.PacienteProxy" field="pacienteProxy"></ui:with>
<g:Label width="100%" height="100%" styleName="{style.lbl}">Presupuestos de <ui:text from="{pacienteProxy.getNombre}"></ui:text></g:Label>
i get an exception:
13:26:44.736 [ERROR] [Porject] Deferred binding result type
xx.xxx.Project.shared.Model.Paciente.PacienteProxy' should not be abstract.
Would be nice make thing like this.
I use GWT 2.4