A gwt application inside FRAME (or IFRAME)

107 views
Skip to first unread message

Susanna Martinelli

unread,
Mar 18, 2011, 1:04:59 PM3/18/11
to google-we...@googlegroups.com
 

Hi folk, I'm trying to run a GWT application inside a frame. I have an html page with a frame set like this: <FRAMESET ROWS="70%,30%" >
<FRAME NAME="Header" SRC="HeaderPage.html"/>
<FRAME NAME="gwtRoot" SRC="MyGwtApp.html"/>
</FRAMESET>

I have also class MyGwtApp.java that contains the GWT application (obviously MyGwtApp.html is the page that call the generated javascript returned from the compilation of MyGwtApp.java).

But once compiled and runned onto the server the page doesn't appear. It seems that the browser doesn't support frames (but it's strange) However i've tried to use an iframe object instead of Frameset/Frame hierarchy by calling directly the javascript application in this way:
<iframe src="mygwtapp/mygwtapp.nocache.js" .../>
but the browser simply return a frame with the javascript code inside (without interpret it). Do you have any suggestions?

ndv

unread,
Mar 20, 2011, 6:20:31 AM3/20/11
to Google Web Toolkit
The suggestion whould be to find a good HTML tutorial. Seriously.

On 18 мар, 20:04, Susanna Martinelli <susanna.martine...@gmail.com>
wrote:

Susanna Martinelli

unread,
Mar 22, 2011, 5:56:42 AM3/22/11
to google-we...@googlegroups.com, ndv
thanks,
I found solution:
iframe's src should point to the html page with the gwt application not the javascript code.

S.
Reply all
Reply to author
Forward
0 new messages