Friday, June 3, 2016

Re: Designer Problem : « uibinder template should be in client package »

This was an unacceptable solution for me as I needed to share features between modules and you cannot go up a directory.

The problem:  The UI Editor looks for a gwt.xml file, then reads it, if the file it finds does not contain the path which your UI xml file resides, it decides that it is not in the package and does not look for additional files.

My Solution 1 and 2:
I solved this by creating a "aadev.gwt.xml" that included all paths needed for all modules.  This one was not added to my compilation, but acted as a dummy so that the GWT designer would see it in the path.  My assumption is that the paths are read alphabetically, which may be a flawed assumption.

The other solution (I tried first actually) was to add that path to the module that did work (As one always works).  Assuming the gwt.xml files are close enough in configuration this should work, however if they are vastly different it may not function as desired, in which I would copy a dummy to the package path, and tweak its paths to make it work (Assuming fix 1 does not solve it for you).




On Wednesday, July 13, 2011 at 1:41:22 PM UTC-5, khiem nguyen wrote:
try to move package1.gwt.xml into package1,  package2.gwt.xml into package2. i have this kind of issue too, keeping this helps:

package
    client
    server
    shared
    module.gwt.xml






On Wed, Jul 13, 2011 at 8:29 AM, cruser <cruser...@gmail.com> wrote:
Thanks Kojo, 

I had a look there and all the source is included. :(
Here is a basic package layout, perhaps there is something wrong :

src--
      |
      topPackage
                     |
                     package1
                                  |
                                  client
                                  server
                     package2
                                  |
                                  client
                                         |
                                         widget
                                                  |
                                                  timewidget
                                                                 |
                                                                 TimeView.java
                                                                 TimeView.ui.xml
                                  server
                     public
                                 |
                                 images(folder)
                                 package1.css
                                 package2.css
                     package1.gwt.xml
                     package2.gwt.xml

...(referenced libraries and war directory etc)

In this example layout the TimeView.ui.xml  gives the error "uibinder template should be in client package".

Is there anything you can spot is wrong with the package layout? Is there anything that says there can be only one "client" package? When running the project everything works fine, I just can't use the designer

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/rfkZElLh7-IJ.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
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 "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment