Use RequestFactoryProxy on UiBinder Template.

51 views
Skip to first unread message

Daniel Mauricio Patino León

unread,
Jul 19, 2012, 2:37:23 PM7/19/12
to google-we...@googlegroups.com
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

Thomas Broyer

unread,
Jul 19, 2012, 5:44:39 PM7/19/12
to google-we...@googlegroups.com
I don't see the @UiField(provided=true) on the pacienteProxy field on your code.

Daniel Mauricio Patino León

unread,
Jul 19, 2012, 7:16:27 PM7/19/12
to google-we...@googlegroups.com
Yhea! this rocks!

I missed the @UiField(provided=true)

Nice, its better to do at this way than change in code.

Thank you thomas.

2012/7/19 Thomas Broyer <t.br...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/AT7NWaDMGRIJ.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
ISC. Daniel Mauricio Patiño León.
Director ejecutivo
Liondev S.A. de C.V.



Reply all
Reply to author
Forward
0 new messages