Another point : I notice that we are obliged to use the UiTemplate
annotation to define which ui.xml to use for a UiBinder in a inner
class.

Is it not possible that the GWT compiler found automatically the
ui.xml file if we name it MainClassName$InnerClassName.ui.xml ?

On 17 mar, 20:52, mmoossen <[email protected]> wrote:
> hi,
>
> I just ran into the same issue.
> but i did change the code before trying to compile, so i still have
> the question:
> it is just an eclipse error, or will also the compiler fail in finding
> the xml file?
>
> thanks
> Michael
>
> On Mar 17, 8:14 pm, Jason Parekh <[email protected]> wrote:
>
> > Hi Bilousme,
>
> > I've opened a bug 
> > athttp://code.google.com/p/google-web-toolkit/issues/list?thanks=4764totrack
> > this issue.
>
> > If you're using GPE 1.3.0, another workaround is to change the severity of
> > the UiBinder validation errors.  This can be found in the Eclipse
> > preferences > Google.
>
> > Thanks!
> > jason
>
> > On Wed, Mar 17, 2010 at 3:02 PM, Bilousme <[email protected]> wrote:
> > > Hello all,
>
> > > I have the classes below (one main class containing an inner class) :
>
> > > public class MyObjectEditView extends Composite{
>
> > >    interface MyObjectEditUiBinder extends UiBinder<Widget,
> > > MyObjectEditView> {}
>
> > >    private static MyObjectEditUiBinder uiBinder =
> > > GWT.create(MyObjectEditUiBinder.class);
>
> > >     ....
>
> > >    public static class MyObjectPropertiesEditView extends Composite{
> > >       �...@uitemplate(value="MyObjectProperties.ui.xml")
> > >        interface MyObjectPropertiesUiBinder extends UiBinder<Widget,
> > > MyObjectPropertiesEditView> {}
>
> > >        private static MyObjectPropertiesUiBinder uiBinder =
> > > GWT.create(MyObjectPropertiesUiBinder.class);
>
> > >        ....
>
> > >    }
> > > }
>
> > > The MyObjectProperties.ui.xml file is defined in the same package of
> > > the main class.
>
> > > Eclipse detects an error on the second UiBinder interface
> > > (MyObjectPropertiesUiBinder) and show me the following message :
> > > "Template file MyObjectProperties.ui.xml is missing (expected at /the/
> > > package/of/the/main/class/MyObjectEditView/)"
>
> > > But If I try to compile my application that works fine and I don't
> > > have compilation errors...
>
> > > Thus for me, Eclipse does not show the error message ! ?
>
> > > The workaround to avoid an error in Eclipse is to define the second
> > > UiBinder interface in the main class (and continue to use it in the
> > > inner class)
>
> > > --
> > > 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.

Reply via email to