Hi i want to integrating existing html div tag in gwt to genrate new HTML file (from existing html) .
1.demo.jsp (existing html) <!-- To change this template, choose Tools | Templates and open the template in the editor. --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript" src="org.yournamehere.Main/ org.yournamehere.Main.nocache.js"></script> </head> <body> TODO write content <div id="sample1"> <input type="text" id ="un" name="uname" value="username" /> <input type="text" id="ps" name="pass" value="password" /> </div> </body> </html> 2. wellcomeGWT.html (Generated Html) <!doctype html> <!-- The DOCTYPE declaration above will set the browser's rendering engine into "Standards Mode". Replacing this declaration with a "Quirks Mode" doctype may lead to some differences in layout. --> <html> <head> <meta name='gwt:module' content='org.yournamehere.Main=org.yournamehere.Main'> <link rel = stylesheet type="text/css" href="your.css"> <title>Main</title> </head> <body> <script type="text/javascript" src="org.yournamehere.Main/ org.yournamehere.Main.nocache.js"></script> <div id="sample1"></div> </body> </html> 3. I written my MainEntryPoint.java /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.yournamehere.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.dom.client.Element; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.ui.DisclosurePanel; import com.google.gwt.user.client.ui.Widget; /** * Main entry point. * * @author HarshaV */ public class MainEntryPoint implements EntryPoint { public void onModuleLoad() { DisclosurePanel dp = new DisclosurePanel("SIP Parameters"); dp.setAnimationEnabled(true); Element e1 = DOM.getElementById("sample1"); // Element e = RootPanel.getBodyElement(); Widget un = RootPanel.get("un").asWidget(); Widget ps = RootPanel.get("ps").asWidget(); dp.add(un); dp.add(ps); RootPanel.get("sample1").add(dp); } } But I am not able to get the Div (sample1) content in welcomeGWT.html please tell me how to call existing html div content in MainEnterypoint.java and show on WelcomeGWT.html Harsh Vardhan -- 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.