Anyone knows GWT Multipage Framework?

98 views
Skip to first unread message

Xybrek

unread,
Dec 9, 2011, 2:55:27 PM12/9/11
to Google-We...@googlegroups.com
Hi, anyone here knows http://code.google.com/p/gwt-multipage/ ?

I have some specific problems with the framework, is there any other GWT
framework that allows multipage function, like gwt-multipage? It can map
EntryPoints and load it based on the html request.

Like: mysite.com/index.html or mysite.com/somethingelse.html will load
two separate entry ponts for each.

Problem with gwt-multipage is that if the access is coming from
mysite.com/ (without specifying the html to load) it breaks and
sometimes loads random entry points if I am not mistaken.

Any ideas?

Jens

unread,
Dec 9, 2011, 3:09:45 PM12/9/11
to google-we...@googlegroups.com, Google-We...@googlegroups.com
A first simple solution would be to configure your web server to redirect requests from http://mysite.com/ to http://mysite.com/index.html.

-- J.

Xybrek

unread,
Dec 10, 2011, 11:20:33 PM12/10/11
to Google-We...@googlegroups.com
> --
> 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/-/5whEQI1yL_QJ.
> 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.

Yes, that's what I did. Using url rewrite filter.

Rob

unread,
Dec 11, 2011, 7:29:21 PM12/11/11
to Google Web Toolkit
Hi,

This is a post re gwt-multipage:

-> http://uptick.com.au/content/managing-multiple-host-pages


You could also use an EntryPoint dispatcher:

->

...

public class EntryPointDispatcher implements EntryPoint {

public void onModuleLoad() {

try {

// get the Host Page name
Dictionary dictionary = Dictionary.getDictionary("Pages");
String page = dictionary.get("page");

Log.debug("Page name token: " + page);

if (page.equals(NameTokens.mainPage)) {
MultiPageEntryPoint entrypoint = (MultiPageEntryPoint)
GWT.create(Serendipity.class);
entrypoint.onModuleLoad();
}
else if (page.equals(NameTokens.accountPage)) {
MultiPageEntryPoint entrypoint = (MultiPageEntryPoint)
GWT.create(AccountEntryPoint.class);
entrypoint.onModuleLoad();
}
else if (page.equals(NameTokens.emailPage)) {
MultiPageEntryPoint entrypoint = (MultiPageEntryPoint)
GWT.create(EmailEntryPoint.class);
entrypoint.onModuleLoad();
}
else if (page.equals(NameTokens.fileUploadPage)) {
MultiPageEntryPoint entrypoint = (MultiPageEntryPoint)
GWT.create(FileUploadEntryPoint.class);
entrypoint.onModuleLoad();
}
} catch (Exception e) {
Log.error("e: " + e);
e.printStackTrace();

Window.alert(e.getLocalizedMessage());
}
}
}

->

Your host file:

->

...

<!-- You can use this to pass start-up information to your GWT
module -->
<script language="javascript">
var Pages = {
page: "MainPage"
};
</script>

...

->

It works for me:

-> http://gwt-cx.com/serendipity/Serendipity.html

Cheers
Rob

http://code.google.com/p/gwt-cx/


On Dec 10, 11:20 pm, Xybrek <xyb...@gmail.com> wrote:
> On 12/10/2011 4:09 AM, Jens wrote:
>
>
>
>
>
>
>
>
>
> > A first simple solution would be to configure your web server to

> > redirect requests fromhttp://mysite.com/tohttp://mysite.com/index.html.

pop.ionut84

unread,
Dec 13, 2011, 5:21:32 AM12/13/11
to Google Web Toolkit
Hi,

I've been using GWT multipage and it worked out great for me.

You can add in web.xml the welcome file you want (index.html) and set
your default EntryPoint to listen to mysite.com/ .
This may help you : https://groups.google.com/forum/#!topic/gwt-multipage/36R7lV6kPj0

On Dec 9, 9:55 pm, Xybrek <xyb...@gmail.com> wrote:
> Hi, anyone here knowshttp://code.google.com/p/gwt-multipage/?

n3k0

unread,
Sep 3, 2012, 6:53:03 PM9/3/12
to google-we...@googlegroups.com, Google-We...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages