Hello,

I've also just run into this. I couldn't see anything in the issue
tracker so I've added a new issue:

http://code.google.com/p/google-web-toolkit/issues/detail?id=4342

Don't forget to vote (star) for this issue if it's important to you
and let's hope that this gets fixed soon.

Cheers,

Chris.


On Dec 8, 9:52 pm, lemaiol <[email protected]> wrote:
> Sorry Dalla,
>
> Did you mean the line in the code pasted above or the line in the
> compiled code? If you meant in the compiled code, it happens in the
> ine 15 of theUiBinderimplementation class generated by GWT. If you
> asked in the above's code, it should happen in the constructor, when
> the interface is created and binded.
>
> Cheers,
> Alberto
>
> On Dec 7, 9:21 am, Dalla <[email protected]> wrote:
>
>
>
> > One what line do you get this error?
>
> > On 6 Dec, 14:34, lemaiol <[email protected]> wrote:
>
> > > Hi guys,
>
> > > I have started trying the new features in GWT 2.0 (awesome ones,
> > > congrats! :) but I found some behavior that I cannot completely
> > > understand. I want to extend the DockLayoutPanel API in a class of my
> > > own but configure this new class usingUiBinder. When I do that, I get
> > > an exception claiming "Type mismatch: cannot convert from
> > > DockLayoutPanel to ParserPanel" (see code at the end). I guess this
> > > has to do with the parser but my expectation is that the parsing
> > > mechanism would be able to deal with subclasses or reject them at all
> > > being required to extend also the parser to match the specific new
> > > subclass.
>
> > > Should it be required to implement an specific parser for such a class
> > > and how should I do it?
>
> > > Many thanks,
> > > Alberto
>
> > > <Problem.java>
> > > package com.samples.gwt.client;
>
> > > // ...imports stripped out..
>
> > > public class Problem extends Composite implements EntryPoint {
> > >     interface Binder extendsUiBinder<Panel, Problem> {}
> > >     private static Binder binder = GWT.create(Binder.class);
>
> > >     public Problem() {
> > >         initWidget(binder.createAndBindUi(this));
> > >     }
>
> > >     public void onModuleLoad() {
> > >         RootPanel.get().add(new Problem());
> > >     }
>
> > > }
>
> > > <Problem.ui.xml>
> > > <ui:UiBinder
> > >         xmlns:ui='urn:ui:com.google.gwt.uibinder'
> > >         xmlns:g='urn:import:com.google.gwt.user.client.ui'
> > >         xmlns:s='urn:import:com.samples.gwt.client'>
>
> > >     <s:ParserPanel unit='PX'>
> > >         <s:north size="125">
> > >             <g:Label text="Title"/>
> > >         </s:north>
> > >         <s:center>
> > >             <g:Label text="Content"/>
> > >         </s:center>
> > >     </s:ParserPanel>
> > > </ui:UiBinder>
>
> > > <ParserPanel.java>
> > > package com.samples.gwt.client;
>
> > > import com.google.gwt.dom.client.Style;
> > > import com.google.gwt.user.client.ui.DockLayoutPanel;
>
> > > public class ParserPanel extends DockLayoutPanel {
> > >     public ParserPanel(Style.Unit unit) {
> > >         super(unit);
> > >     }
>
> > > }

--

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.


Reply via email to