Hello. I need to accomplish a trivial task but I don't have any hints. I have a prototype of two-pages web-site and trying to implement a simple menu allowing to switch between these two pages. I'm trying to do it in a such way: In my application starting html file I have two divs (placeholders) - one for menu, another one for document body - the place where I want have my html loaded. <body> <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe> <div id="site_nav_big"> </div> <div id="body"></div> </body>
On menu click I want to get a div from the root panel and insert an html content there somehow. AFAIK in gwt-ext I could create a Composite based on a static html template and just insert it but in case of gwt I'm not sure about templates. Does anybody knows the best solution for that? My only idea is to open my html on a file level, read its content into a string, create an HTML component filled with this string and insert HTML into root panel's div. I suspect it's a stupid solution. Any ideas or links to tutorials? TIA, sandlex --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---