My favorites | Sign in
Project Logo
                

Info

Please read this discussion thread! Your regex depends on the context-root of your application: http://groups.google.com/group/gwt-multipage/browse_thread/thread/4144b695a3564353

Maven features added (see below).

There was a bug in Beta1, that is removed now in Beta2 (thanks to Neil !).

Getting Started

Add the gwt-multipage.jar to your build path or copy it into the lib folder, inherit the gwt-multipage module and use the EntrypointDispatcher instead of your own:

<module>

	<!-- Inherit the core Web Toolkit stuff.                  -->
	<inherits name='com.google.gwt.user.User'/>

	<!-- Inherit the gwt-multipage module -->
	<inherits name='com.claudiushauptmann.gwt.multipage.gwt-multipage'/>

	<!-- Use this EntryPoint instead of your own one. -->
	<entry-point class='com.claudiushauptmann.gwt.multipage.client.EntrypointDispatcher'/>
  
  	<inherits name="com.google.gwt.user.theme.standard.Standard"/>
  	<!-- <inherits name="com.google.gwt.user.theme.chrome.Chrome"/> -->
  	<!-- <inherits name="com.google.gwt.user.theme.dark.Dark"/> -->
  	
</module>

Add the MultipageEntryPoint-annotation to your entrypoints and specify the urlpattern (regular expression) for which the modules should be used:

package com.claudiushauptmann.gwt.multipage.sample.client;

import com.claudiushauptmann.gwt.multipage.client.MultipageEntryPoint;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;

@MultipageEntryPoint(urlPattern = "MyMultipageEntryPoint.html")
public class MyMultipageEntryPoint implements EntryPoint {

	public void onModuleLoad() {
		Label label = new Label("MyMultipageEntryPoint");
		RootPanel.get().add(label);
	}

}

Maven

From now on you can use gwt-multipage directly with maven:

	<repositories>
		...
		<repository>
			<id>gwt-multipage</id>
			<url>http://gwt-multipage.googlecode.com/svn/repo</url>
		</repository>
	</repositories>
	<dependencies>
		...
		<dependency>
			<groupId>com.claudiushauptmann</groupId>
			<artifactId>gwt-multipage</artifactId>
			<scope>provided</scope>
			<version>1.0.0-SNAPSHOT</version>
		</dependency>
	</dependencies>








Hosted by Google Code