Reputation: 3845
Being a GWT newbie, I want to create GWT frontend and a PHP backend, communicating via JSON. The GWT Getting started docs (http://code.google.com/intl/sv-SE/webtoolkit/doc/latest/tutorial/JSONphp.html) suggests
Is there a way to avoid this roundtrip? Could Jetty and a localhost Apache be set up to run simultaneously so that GWT frontend development (hosted mode) could be done in parallell with PHP backend dev?
Alternatively, could GWT Host mode be setup to use localhost Apache/Tomcat instead of Jetty?
Upvotes: 4
Views: 1486
Reputation: 80340
Browsers pages (javascript) are normally only allowed to communicate to their origin servers. There are ways around it, but require changing your html pages, which makes no sense since you only need this for developments.
A better solution would be to just copy necessary files to your PHP project directory after every GWT compile. Ant can do this and your IDE maybe too.
Upvotes: 1
Reputation: 5406
Yes it's possible. You have to do the following:
Upvotes: 2