Multiple Entry Points & GWT Designer, how to choose..

471 views
Skip to first unread message

John Gentilin

unread,
Oct 10, 2011, 4:59:29 AM10/10/11
to Google Web Toolkit
After much thought I decided that the best way to accomplish what I am
trying to
do was to use multiple Entry Points.. One down side is that it seems
that GWT Designer
will pick up the first one it sees in the directory.. Is there a way
to tell GWT Designer which
is the current Entry Point to use ?

Thank You
John Gentilin

Konstantin Scheglov

unread,
Oct 10, 2011, 1:46:22 PM10/10/11
to google-we...@googlegroups.com
No, GWT Designer always uses first module with EntryPoint in given package.

Konstantin Scheglov

unread,
Oct 10, 2011, 2:57:52 PM10/10/11
to google-we...@googlegroups.com
Can you please open GWT issue for this feature request?

What we could add into GWT Designer is support for special "marker" comment, which will force using marked GWT module file by GWT Designer.
Something like <!-- gwtd.use.this.module --> somewhere inside.

Konstantin Scheglov

unread,
Oct 11, 2011, 9:13:08 AM10/11/11
to google-we...@googlegroups.com
Support "gwtd.module.use" marker  to choose single module was added to GWTD trunk.

John Gentilin

unread,
Oct 11, 2011, 5:22:08 PM10/11/11
to Google Web Toolkit
Are you saying there is no need for a ticket now ??

Are GPE issues added to the GWT project or do they have their
own ? ie. http://code.google.com/p/google-web-toolkit/

Thanks
John Gentilin

Konstantin Scheglov

unread,
Oct 12, 2011, 9:13:59 AM10/12/11
to google-we...@googlegroups.com
Yes, there is no need for a ticket.

John Gentilin

unread,
Oct 22, 2011, 4:14:21 PM10/22/11
to Konstantin Scheglov, google-we...@googlegroups.com
Konstantin,

When you say this is in trunk, is it in the release version.. I've
search around
but haven't found any reference to gwtd.module.use. To get by I have
been
renaming the entry points I am not using to .txt, would be nice to
take advantage
of the gwtd.module.use feature if it exists today.. If it is in the
release product,
can you point me to docs on how to utilize it..

Thank you
John Gentilin

Eric Clayberg (Google)

unread,
Oct 24, 2011, 2:24:12 PM10/24/11
to google-we...@googlegroups.com
It should be available in the latest GWT Designer build.

Heres how to use it...

1. Create a GWT project with a GWT module, moduleA.gwt.xml file.
2. Create a second GWT module, moduleB.gwt.xml in the same folder.
3. If you want to make sure that GWT Designer uses moduleB.gwt.xml, add the following comment to that file: <!-- gwtd.module.use -->

John Gentilin

unread,
Oct 28, 2011, 2:54:08 PM10/28/11
to Google Web Toolkit
I have been using this mechanism and it works great..

but i was thinking later that it would be so much better if we could
specify the
EntryPoint to use in the ui.xml file, that way there is no need to
switch... i.e.
<ui:EntryPoint path="com.package.EntryPoint.gwt.xml"/>

-John G

On Oct 24, 11:24 am, "Eric Clayberg (Google)" <clayb...@google.com>
wrote:

Konstantin Scheglov

unread,
Oct 28, 2011, 3:19:11 PM10/28/11
to google-we...@googlegroups.com

  Well, if you have 20 UiBinder templates, you probably don't want to change all of them.


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




--
Konstantin Scheglov
Software Engineer
Google, Inc.

Reply all
Reply to author
Forward
0 new messages