rdwallis / gwt-pushstate Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jbarop/gwt-pushstate
gwt-pushstate implements easy to use HTML5 pushState support for GWT projects.
This project forked from jbarop/gwt-pushstate
gwt-pushstate implements easy to use HTML5 pushState support for GWT projects.
Hi,
First of all thank you for this project ! This solution match perfectly with Google's Recommandations for crawler.
I wanted to try it with the gwtp's sample project for a POC, but i have some trouble : After form submission, URL become http://127.0.0.1:8888/response;textToServer=azee , but i have a 404 when i try to load it in a new tab.
Step to reproduce :
I didin't put relative path because url is on root : http://127.0.0.1:8888/Gwtpsamplespring.html
Am i doing something wrong , or is there a compatibility problem with gwtp1.5 ?
Thank you !
When using phonegap you do not want to have the url rewritten. Could you insert a function
PushStateHistorian.setEnable(false);
which can be used to disable PushState in onModuleLoad(). This is needed when you use the same code for web and for mobile. Otherwise you have to write more than one of the same files.
You can use it as:
if (phoneGap.isPhoneGapDevice()) {
PushStateHistorian.setEnable(false);
}
What do you think?
2.0-SNAPSHOT is in master and can be checked out and run.
Due to changes in GWT 2.7 it is no longer a drop in replacement and instead requires that History calls be made to Historian instead. See the readme for more details.
Hi,
I tested you lib and found the following. I use route place tokens of the form
public static final String user = "!/{"+UrlTokens.USER_NAME+"}";
I have a test user called www. My GWT module name is mobile and the GWT base path is
/gwt/mobile/
I set the following in my entry point class's onModuleLoad() function
PushStateHistorian.setRelativePath("/gwt/"+GWT.getModuleName());
When i open the index page of my app with:
http://test.no-ip.biz:8080/test
it is transformed to
http://test.no-ip.biz:8080/test/#
The /# should not be in the url. Since I am in a HTML5 PushState supported browser.
When I go to the user page of my test user www I enter
http://test.no-ip.biz:8080/test/www
This url is transformed into
http://test.no-ip.biz:8080/test/www#!/www
I had the same problem when I enhanced the push-state code. I think that you do not parse the path correctly. Also, I was wondering why #!/www is part of the url when I am in a push state supported browser?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.