Hi,
for the last weeks as we using GWT and its UiBinder mechanism, we put
the .ui.xml files in the same directory where the counterpart .class
files are. It worked always as we wished it to do. Now we want to have
multiple .ui.xml files to exist in different packages, but not as
subdirectories of the uibinder foo.class file directory. So we use the
@UiTemplate annotation to get the uibinder foo.ui.xml file. As the
documentation says, we put in the path referring the desired .ui.xml.
But for some reason, when we insert a "../" to CD to parent
directories, Eclipse accept this, but the GWT compiler replaces all
dots with slashes. So when we do that, the result of a given path e.g.
"../../foo/hoo.ui.xml" is "//////foo/hoo.ui.xml", what the
UiBinderGenarator cannot find by giving us the following compiler
error:
Invoking generator com.google.gwt.uibinder.rebind.UiBinderGenerator
               [ERROR] Unable to find resource:  "//////foo/ho...

Is this a security mechanism? When we try to set a absolute path (e.g.
com.proj.client.A.foo.hoo.ui.xml), both Eclipse and GWT can't find the
ui.xml.
In the sources of the UiBinderGenerator I can see, that all dots are
replaced by slashes, for which reason this is done?
Package structure we want:

client .class files:

com.proj.client.classes.foo
    L hoo.java

client .ui.xml files:

com.proj.client.A.foo
    L hoo.ui.xml

foo.java:

@UiTemplate("../../A/foo.ui.xml")

proj.gwt.xml:

<!-- Specify the paths for translatable code  -->
<source path='client/classes' />
<source path='client/A' />

Why our plan doesn't work? Do we forget something?
Thank you.
Regards, Maxim

-- 
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