3

I have just started learning GWT. My question is pretty simple:

If I create some widgets in GWT, lets say a Calculator widget and I want to use that widget in my existing PHP or JSP web app, then how can I do that ?

I am referring the book GWT in Action for learning GWT.

1 Answer 1

4

Link the *.nocache.js script files and add the history iFrame to the host PHP or JSP page.

Just have a div with a known id, lets say "marker" in your host HTML.

Add the Widget from your GWT application into the div as RootPanel.get( "marker" ).add( < your app widget > )

Sign up to request clarification or add additional context in comments.

2 Comments

ok, should I copy that complete folder inside the war directory of the GWT project which contains various .cache. files along with the *.nocache.js file ? and what about the GWT's standard theme CSS files ?
GWT compiler would have created a directory named after your GWT module in the war. The same dir contains amongst all the app resources a nocache.js file that you link in the host HTML. It is sufficient if you copy the < module name > folder relative to your host page and link to the nocache.js in it. That should work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.