Create a VIEW layer for Widget and Composite

13 views
Skip to first unread message

Paulo Coutinho

unread,
Oct 1, 2011, 1:11:59 PM10/1/11
to Google-We...@googlegroups.com
Hi,

Im already have a GWT app with PHP and now i want put the VIEW layer of my widgets and composites classes in a HTML page or UI-BINDER. 

How i can do it?

Today im creating all components in the java class, but i want separate it to the designer can change all.

Please help me!

--
Atenciosamente,
Paulo Coutinho.
Blog: www.prsolucoes.com/blog
Site: www.prsolucoes.com
Msn:  pa...@prsolucoes.com
Skype: paulo.prsolucoes
Telefone: +55 21 9386-0010
Consultor Certificado Bindows

Paulo Coutinho

unread,
Oct 1, 2011, 1:58:43 PM10/1/11
to Google-We...@googlegroups.com
Hi,

I got do it.

I create a file called:

LoginForm.ui.xml
for
LoginForm.java

And it works.

But i need that this files are separated by theme folders or in a differente path from default.

How i can do it?



2011/10/1 Paulo Coutinho <pa...@prsolucoes.com>

benneq

unread,
Oct 1, 2011, 6:18:42 PM10/1/11
to Google Web Toolkit
You can simply put your .ui.xml file to another folder and tell
your .java file where it is:

Here's a small code that will do it:
@UiTemplate("RootUIDisplay.ui.xml")
interface RootUIDisplayUiBinder extends UiBinder<Widget,
RootUIDisplay> {}

In words: You have to write an annotation for the UiBinder interface,
to tell it where its .ui.xml file it.

Pretty simple. Isn't it ? :)

Paulo Coutinho

unread,
Oct 1, 2011, 6:41:40 PM10/1/11
to google-we...@googlegroups.com
Hi. 

The problem is that i want put my "ui.xml" in a folder that is separated of ".java" files.

Like a resources path or the "war" path.

Can i put on WAR directory?

Thanks man.

2011/10/1 benneq <benjami...@lavabit.com>
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Thomas Broyer

unread,
Oct 2, 2011, 7:12:44 AM10/2/11
to google-we...@googlegroups.com


On Sunday, October 2, 2011 12:41:40 AM UTC+2, Paulo Coutinho wrote:
Hi. 

The problem is that i want put my "ui.xml" in a folder that is separated of ".java" files.

Like a resources path or the "war" path.

Can i put on WAR directory?

No, but any folder that you'll put on the classpath of GWT DevMode and Compiler will do (in Eclipse, any "source folder" of your project)
Reply all
Reply to author
Forward
0 new messages