Re: Can I add a UIObject to a Panel?
You don't need to add the bound class to the Panel. Create a ui:field for the entire form/panel in the XML file. Cheers Niclas On Tue, Jan 19, 2010 at 12:20 PM, Lyn Headley lahea...@gmail.com wrote: Hello, I am using the UIBinder to build a div, by binding an xml file to a java class which extends UIObject. However, I cannot add an instance of this class to a panel using the Panel's add method, because add takes an object of type Widget, and I don't have one of those; I have a UIObject. Is there a way to add a UIObject to a panel, or else to construct a suitable Widget from a UIObject? Thanks! -- Lyn Headley UCSD Communication and Science Studies http://sites.google.com/site/lynheadley -- 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-tool...@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. -- Niclas Hedhman, Software Developer http://www.qi4j.org - New Energy for Java I live here; http://tinyurl.com/2qq9er I work here; http://tinyurl.com/2ymelc I relax here; http://tinyurl.com/2cgsug -- 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-tool...@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.
Internal Error for Permutation 1
Hi, I suddenly get InternalError in my project. A bit too much changes happened from the working version to the current one. Hope the stack trace can provide information. [INFO]Compiling 6 permutations [INFO] Compiling permutation 0... [INFO] Process output [INFO] Compiling permutation 1... [INFO] [ERROR] An internal compiler exception occurred [INFO] com.google.gwt.dev.jjs.InternalCompilerException: Error reading compile report information that was just generated [INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.makeSoycArtifact (JavaToJavaScriptCompiler.java:1001) [INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation (JavaToJavaScriptCompiler.java:361) [INFO] at com.google.gwt.dev.jjs.UnifiedAst.compilePermutation (UnifiedAst.java:128) [INFO] at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java: 187) [INFO] at com.google.gwt.dev.ThreadedPermutationWorkerFactory $ThreadedPermutationWorker.compile (ThreadedPermutationWorkerFactory.java:49) [INFO] at com.google.gwt.dev.PermutationWorkerFactory$Manager $WorkerThread.run(PermutationWorkerFactory.java:70) [INFO] at java.lang.Thread.run(Thread.java:637) [INFO] Caused by: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x{2}) was found in the value of attribute {1} and element is 8. [INFO] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException (ErrorHandlerWrapper.java:195) [INFO] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError (ErrorHandlerWrapper.java:174) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (XMLErrorReporter.java:388) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError (XMLScanner.java:1414) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue (XMLScanner.java:967) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanAttribute (XMLNSDocumentScannerImpl.java:460) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement (XMLNSDocumentScannerImpl.java:277) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next (XMLDocumentScannerImpl.java:648) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next (XMLNSDocumentScannerImpl.java:140) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument (XMLDocumentFragmentScannerImpl.java:510) [INFO] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:807) [INFO] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:737) [INFO] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:107) [INFO] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1205) [INFO] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $JAXPSAXParser.parse(SAXParserImpl.java:522) [INFO] at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) [INFO] at javax.xml.parsers.SAXParser.parse(SAXParser.java:198) [INFO] at com.google.gwt.soyc.SoycDashboard.readSizeMaps (SoycDashboard.java:347) [INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.makeSoycArtifact (JavaToJavaScriptCompiler.java:991) -- 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-tool...@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: Internal Error for Permutation 1
Found the problem. My code contained a mistaken \b literal (instead of \n). Shouldn't crash the compiler though... On Sat, Jan 16, 2010 at 8:20 PM, Niclas Hedhman hedh...@gmail.com wrote: Hi, I suddenly get InternalError in my project. A bit too much changes happened from the working version to the current one. Hope the stack trace can provide information. [INFO] Compiling 6 permutations [INFO] Compiling permutation 0... [INFO] Process output [INFO] Compiling permutation 1... [INFO] [ERROR] An internal compiler exception occurred [INFO] com.google.gwt.dev.jjs.InternalCompilerException: Error reading compile report information that was just generated [INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.makeSoycArtifact (JavaToJavaScriptCompiler.java:1001) [INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation (JavaToJavaScriptCompiler.java:361) [INFO] at com.google.gwt.dev.jjs.UnifiedAst.compilePermutation (UnifiedAst.java:128) [INFO] at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java: 187) [INFO] at com.google.gwt.dev.ThreadedPermutationWorkerFactory $ThreadedPermutationWorker.compile (ThreadedPermutationWorkerFactory.java:49) [INFO] at com.google.gwt.dev.PermutationWorkerFactory$Manager $WorkerThread.run(PermutationWorkerFactory.java:70) [INFO] at java.lang.Thread.run(Thread.java:637) [INFO] Caused by: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x{2}) was found in the value of attribute {1} and element is 8. [INFO] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException (ErrorHandlerWrapper.java:195) [INFO] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError (ErrorHandlerWrapper.java:174) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (XMLErrorReporter.java:388) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError (XMLScanner.java:1414) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue (XMLScanner.java:967) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanAttribute (XMLNSDocumentScannerImpl.java:460) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement (XMLNSDocumentScannerImpl.java:277) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next (XMLDocumentScannerImpl.java:648) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next (XMLNSDocumentScannerImpl.java:140) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument (XMLDocumentFragmentScannerImpl.java:510) [INFO] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:807) [INFO] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:737) [INFO] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:107) [INFO] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1205) [INFO] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $JAXPSAXParser.parse(SAXParserImpl.java:522) [INFO] at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) [INFO] at javax.xml.parsers.SAXParser.parse(SAXParser.java:198) [INFO] at com.google.gwt.soyc.SoycDashboard.readSizeMaps (SoycDashboard.java:347) [INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.makeSoycArtifact (JavaToJavaScriptCompiler.java:991) -- 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-tool...@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. -- Niclas Hedhman, Software Developer http://www.qi4j.org - New Energy for Java I live here; http://tinyurl.com/2qq9er I work here; http://tinyurl.com/2ymelc I relax here; http://tinyurl.com/2cgsug -- 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-tool...@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.