Re: HTML Code Generation
Thank you! That brings me a step forward. Now I have a RPC service that loops over class names and returns some annotated classes that extend UIObject: public ArrayList> getClassNames(); But neither can I return a List of Classes (com.google.gwt.user.client.rpc.SerializationException: Type 'java.lang.Class' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.) nor can I instantiate a class by name in my GWTTestCase extending class. -- 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.
Re: HTML Code Generation
Thank you for your response! I tried this and now I can call toString(). But how can I call basic JAVA Methods? For example how can I write the generated HTML Code to a File? Using java.io.File I get an error when executing the GWT JUnit Test: [ERROR] Line 41: No source code is available for type java.io.File; did you forget to inherit a required module? This error appears for every JRE class I try to use. -- 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.
HTML Code Generation
Hello! I have created some Widgets with GWT Designer in Eclipse. Now I would like to get to the HTML code, GWT produces, programmatically (not the events, just the code of the static pages). You can get this code by calling UIObject.toString() but this works only running the compiled code in a web browser. But I was not able to get this code calling compiled JAVA Code (getting the error: "GWT.create() is only usable in client code!"). Is there any way to get around this or any other way producing the static html code of a widget with a JAVA program? Thanks in advance -- 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.