Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
UiBinder Issue
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
drobe  
View profile  
 More options Nov 6, 12:31 am
From: drobe <drob...@gmail.com>
Date: Thu, 5 Nov 2009 21:31:47 -0800 (PST)
Local: Fri, Nov 6 2009 12:31 am
Subject: UiBinder Issue
Hey, so I've been attempting to work with UiBinder with GWT 2.0 and
can't seem to see why my module will not compile. Does anyone see
anything I'm doing wrong? Thanks

Query.gwt.xml
<module rename-to='query'>
  <inherits name='com.google.gwt.user.User'/>
  <inherits name='com.google.gwt.uibinder.UiBinder'/>
  <entry-point class='com.xx.client.Query'/>
</module>

Query.java
public class Query implements EntryPoint {
        interface Binder extends UiBinder<DockLayoutPanel, Query> { }
        private static final Binder binder = GWT.create(Binder.class);

  public void onModuleLoad() {
            DockLayoutPanel outer = binder.createAndBindUi(this);

            RootLayoutPanel root = RootLayoutPanel.get();
            root.add(outer);
            root.layout();
  }

}

And the error:
java.lang.RuntimeException: Deferred binding failed for
'com.xx.client.Query$Binder' (did you forget to inherit a required
module?)

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
matthieu vidal  
View profile  
 More options Nov 6, 3:09 am
From: matthieu vidal <m...@matthieu-vidal.com>
Date: Fri, 6 Nov 2009 00:09:04 -0800 (PST)
Local: Fri, Nov 6 2009 3:09 am
Subject: Re: UiBinder Issue
Hi

You should have a problem with the file Query.ui.xml file name( not in
the right place or bad name probably)

regards

On 6 nov, 06:31, drobe <drob...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
eggsy84  
View profile  
 More options Nov 6, 4:44 am
From: eggsy84 <jimbob...@hotmail.com>
Date: Fri, 6 Nov 2009 01:44:35 -0800 (PST)
Local: Fri, Nov 6 2009 4:44 am
Subject: Re: UiBinder Issue
I've done a little blog post on this that might help:

http://eggsylife.co.uk/2009/11/01/gwt-2-0-declarative-interfaces/

On Nov 6, 8:09 am, matthieu vidal <m...@matthieu-vidal.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
drobe  
View profile  
 More options Nov 6, 1:25 pm
From: drobe <drob...@gmail.com>
Date: Fri, 6 Nov 2009 10:25:48 -0800 (PST)
Local: Fri, Nov 6 2009 1:25 pm
Subject: Re: UiBinder Issue
Thanks for the replies. eggsy, I've reviewed your blog post and tried
to add the @UiTemplate annotation and still the same issue. I may be
wrong, but it seems like it doesn't see my module inherits UiBinder,
even though it is declared in the module gwt.xml file.

On Nov 6, 4:44 am, eggsy84 <jimbob...@hotmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
drobe  
View profile  
 More options Nov 6, 7:56 pm
From: drobe <drob...@gmail.com>
Date: Fri, 6 Nov 2009 16:56:35 -0800 (PST)
Local: Fri, Nov 6 2009 7:56 pm
Subject: Re: UiBinder Issue
Alright, I got it. I was trying to use an HTML element (<h1>) instead
of a Widget for the DockLayoutPanel.

Failed:
  <g:DockLayoutPanel unit='EM'>
    <g:center>
                <h1>Test</h1>
    </g:center>
  </g:DockLayoutPanel>

Correct:
  <g:DockLayoutPanel unit='EM'>
    <g:center>
                <g:Label>Test</g:Label>
    </g:center>
  </g:DockLayoutPanel>

Thanks again for the helpful replies.

On Nov 6, 1:25 pm, drobe <drob...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
matthieu vidal  
View profile  
 More options Nov 7, 5:28 am
From: matthieu vidal <m...@matthieu-vidal.com>
Date: Sat, 7 Nov 2009 02:28:01 -0800 (PST)
Local: Sat, Nov 7 2009 5:28 am
Subject: Re: UiBinder Issue
Thank's for this return

Regarding the error message produced by this problem, that's mean that
XML Validation is mandatory.

I have more and more doubt about the benefit of UIBinder :

- ui.xml files are made of a new language (XML schema validation is
obviously mandatory) and we still have to to handle the java widget
object in their own java classes.

Sorry if I've missed something obvious.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google