google-code-export / gwt-test-utils

Automatically exported from code.google.com/p/gwt-test-utils
1 stars 0 forks source link

UiBinder throws exception when declaring ui:image #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Create a UiBinder widget with an image like this :

DecoratedButton
<ui:image field="lightMiddelLeft" src="LightButtonML.png" />
 <g:HTMLPanel>
   <table border="0" cellspacing="0" cellpadding="0"
     class="{style.cv-DecoratedButton}">
     <tr class="{style.top}">
...
.
</g:HTMLPanel>

What is the expected output? What do you see instead?

Unit-testing this class should work. Instead, a GwtTestUiBinderException is 
thrown : 

com.octo.gwt.test.exceptions.GwtTestUiBinderException: UiBinder
template 'widgets.client.decoratedButton.DecoratedButton' should
declare only one root widget in its corresponding .ui.xml file
       at
com.octo.gwt.test.internal.uibinder.UiBinderTagBuilder.endTag(UiBinderTagBuilder
.java:
101)
       at
com.octo.gwt.test.internal.uibinder.UiXmlContentHandler.endElement(UiXmlContentH
andler.java:
32)
       at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
       at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
       at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown
Source)
       at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatch(Unknown Source)
       at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)

Original issue reported on code.google.com by gael.laz...@gmail.com on 29 Jul 2011 at 8:53

GoogleCodeExporter commented 9 years ago
I've improved the support for <ui:image>, <ui:style> and <ui:data>. 

The fix is available in the lastest 0.32-SNAPSHOT. Could you please give it a 
try and give me some feedback ?

Original comment by gael.laz...@gmail.com on 31 Jul 2011 at 11:46

GoogleCodeExporter commented 9 years ago
Works on 0.32-SNAPSHOT according to users

Original comment by gael.laz...@gmail.com on 6 Aug 2011 at 5:40