Hi Matteo, I had the same problem. In my default locale representation of double is e.g. 5,000000 (with comma)
When UIBinderWriter generates Mail_BinderImple it writes 5,000000 (using default locale) where javac expects 5.000000 (with dot). 5, 000000 is treated as two integers. You should change yours default locale for gwtc e.g. adding - Duser.language=en -Duser.country=US -Duser.variant=US virtual machine parameters. When i compile GWT trunk i set environmental variable _JAVA_OPTIONS="- Duser.language=en -Duser.country=US -Duser.variant=US" before. I hope it'll help you Regards, Michal On Sep 29, 9:07 am, mfiandesio <[email protected]> wrote: > Hi to all, > I'm having a look at the UIBinder layouting using as tutorial theMail > sample but when i try to compile my application or the sample code it > gives me this exception > > The method addNorth(Widget, double) in the type DockLayoutPanel is not > applicable for the arguments (Header, int, int). > > My layout xml is pretty simple: > > <g:DockLayoutPanel unit="EM"> > <g:north size='100'> > <api:Header ui:field='header' /> > </g:north> > > <g:center> > <g:SplitLayoutPanel> > <g:west size="30"> > <api:Menu ui:field='menu' /> > </g:west> > > </g:SplitLayoutPanel> > </g:center> > </g:DockLayoutPanel> > > and the code > > @UiField public Header header; > @UiField public Menu menu; > [..] > DockLayoutPanel outer = binder.createAndBindUi(this); > > // Get rid of scrollbars, and clear out the window's > built-in > margin, > // because we want to take advantage of the entire client > area. > Window.enableScrolling(false); > Window.setMargin("0px"); > > // Special-case stuff to make topPanel overhang a bit. > Element topElem = outer.getContainerElementFor(header); > topElem.getStyle().setZIndex(2); > topElem.getStyle().setOverflow(Overflow.VISIBLE); > > RootLayoutPanel root = RootLayoutPanel.get(); > root.add(outer); > root.layout(); > [..] > Do you have any hint? > > Regards, > Matteo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
