In your UiBinder XML file seems like you have a typo - Change *uifield *to * ui:field* ** * * *Thanks* Prashant
On Mon, Oct 11, 2010 at 10:51 AM, Giuseppe Sacco <[email protected]> wrote: > Hi all, > I am using uiBinder for the first time and I got an error message I > cannot understand. The message is "class HorizontalPanel has no > appropriate setUifield() method" and it appear on this code > > Diapo.ui.xml > <!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"> > <!-- <ui:style></ui:style> --> > <g:VerticalPanel> > <g:DeckPanel ui:field="pannelloCentrale"></g:DeckPanel> > <g:ScrollPanel uifield="pannelloAnteprime"> > <g:HorizontalPanel uifield="pannelloOrizzontale"></ > g:HorizontalPanel> > </g:ScrollPanel> > </g:VerticalPanel> > </ui:UiBinder> > > Diapo.java (first lines) > public class Diapo extends Composite implements RequestCallback { > private static DiapoUiBinder uiBinder = > GWT.create(DiapoUiBinder.class); > @UiField DeckPanel pannelloCentrale; > @UiField ScrollPanel pannelloAnteprime; > @UiField HorizontalPanel pannelloOrizzontale; > //... > } > > What does the message means? Since it report a problem about > HorizontalPanel class, does this means I can only use HorizontalPanel > in uiBinder when I don't care about UiFields? How can I get a > reference to the created horizontal panel? > > Thank you very much, > Giuseppe > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
